mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Per the spec in modules.md the exports property should default to an empty object. We lazy allocate it so that modules that just replace it don't create the empty object and then throw it away. R=abarth@chromium.org Review URL: https://codereview.chromium.org/872043003
12 lines
425 B
Plaintext
12 lines
425 B
Plaintext
// Copyright 2014 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
[
|
|
ConstructorCallWith=ExecutionContext,
|
|
Constructor(Application application, Document document, DOMString url),
|
|
] interface Module : AbstractModule {
|
|
readonly attribute Application application;
|
|
[CallWith=ScriptState] attribute any exports;
|
|
};
|