OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/deferred_only_constant_test', null, /* Imports */
[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__deferred_only_constant_test(exports, dart_sdk, expect) { |
| 5 'use strict'; |
| 6 const core = dart_sdk.core; |
| 7 const dart = dart_sdk.dart; |
| 8 const dartx = dart_sdk.dartx; |
| 9 const expect$ = expect.expect; |
| 10 const deferred_only_constant_test = Object.create(null); |
| 11 const deferred_only_constant_lib = Object.create(null); |
| 12 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun
ctionType(dart.dynamic, [dart.dynamic])))(); |
| 13 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da
rt.void, [])))(); |
| 14 let const$; |
| 15 deferred_only_constant_test.main = function() { |
| 16 loadLibrary().then(dart.dynamic)(dart.fn(_ => { |
| 17 expect$.Expect.equals(deferred_only_constant_lib.constant, const$ || (cons
t$ = dart.constList(["a", "b", "c"], core.String))); |
| 18 }, dynamicTodynamic())); |
| 19 }; |
| 20 dart.fn(deferred_only_constant_test.main, VoidTovoid()); |
| 21 deferred_only_constant_lib.constant = dart.constList(["a", "b", "c"], core.Str
ing); |
| 22 // Exports: |
| 23 exports.deferred_only_constant_test = deferred_only_constant_test; |
| 24 exports.deferred_only_constant_lib = deferred_only_constant_lib; |
| 25 }); |
OLD | NEW |