| Index: lib/runtime/dart_runtime.js
|
| diff --git a/lib/runtime/dart_runtime.js b/lib/runtime/dart_runtime.js
|
| index b0e879e0a50402c807072554599b76778a1ee543..4dd786854bbc73cbf361ae368de82cd4a0757c5c 100644
|
| --- a/lib/runtime/dart_runtime.js
|
| +++ b/lib/runtime/dart_runtime.js
|
| @@ -966,6 +966,22 @@ var dart, _js_helper, _js_primitives;
|
| dart.global = window || global;
|
| dart.JsSymbol = Symbol;
|
|
|
| + function import_(value) {
|
| + if (!value) throw 'missing required module';
|
| + return value;
|
| + }
|
| + dart.import = import_;
|
| +
|
| + function lazyImport(value) {
|
| + return defineLibrary(value, {});
|
| + }
|
| + dart.lazyImport = lazyImport;
|
| +
|
| + function defineLibrary(value, defaultValue) {
|
| + return value ? value : defaultValue;
|
| + }
|
| + dart.defineLibrary = defineLibrary;
|
| +
|
| // TODO(jmesserly): hack to bootstrap the SDK
|
| _js_helper = _js_helper || {};
|
| _js_helper.checkNum = notNull;
|
|
|