OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/setter_no_getter_call_test_none_multi', null, /*
Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__setter_no_getter_call_test_none_multi(exports, dart_sdk, expec
t) { |
| 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 setter_no_getter_call_test_none_multi = Object.create(null); |
| 11 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun
ctionType(dart.dynamic, [dart.dynamic])))(); |
| 12 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 13 setter_no_getter_call_test_none_multi.topLevelClosure = null; |
| 14 dart.copyProperties(setter_no_getter_call_test_none_multi, { |
| 15 get topLevel() { |
| 16 return setter_no_getter_call_test_none_multi.topLevelClosure; |
| 17 }, |
| 18 set topLevel(value) {} |
| 19 }); |
| 20 setter_no_getter_call_test_none_multi.initialize = function() { |
| 21 core.print("initializing"); |
| 22 setter_no_getter_call_test_none_multi.topLevelClosure = dart.fn(x => dart.ds
end(x, '*', 2), dynamicTodynamic()); |
| 23 }; |
| 24 dart.fn(setter_no_getter_call_test_none_multi.initialize, VoidTodynamic()); |
| 25 setter_no_getter_call_test_none_multi.main = function() { |
| 26 setter_no_getter_call_test_none_multi.initialize(); |
| 27 let x = dart.dcall(setter_no_getter_call_test_none_multi.topLevelClosure, 2)
; |
| 28 expect$.Expect.equals(4, x); |
| 29 x = dart.dcall(setter_no_getter_call_test_none_multi.topLevel, 3); |
| 30 expect$.Expect.equals(6, x); |
| 31 }; |
| 32 dart.fn(setter_no_getter_call_test_none_multi.main, VoidTodynamic()); |
| 33 // Exports: |
| 34 exports.setter_no_getter_call_test_none_multi = setter_no_getter_call_test_non
e_multi; |
| 35 }); |
OLD | NEW |