OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/map_literal11_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__map_literal11_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 map_literal11_test = Object.create(null); |
| 11 let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(da
rt.void, [])))(); |
| 12 let dynamicTobool = () => (dynamicTobool = dart.constFn(dart.definiteFunctionT
ype(core.bool, [dart.dynamic])))(); |
| 13 let MapTovoid = () => (MapTovoid = dart.constFn(dart.definiteFunctionType(dart
.void, [core.Map])))(); |
| 14 map_literal11_test.foo = function(m) { |
| 15 expect$.Expect.throws(dart.fn(() => { |
| 16 m[dartx.set](23, 23); |
| 17 }, VoidTovoid()), dart.fn(e => core.TypeError.is(e), dynamicTobool())); |
| 18 }; |
| 19 dart.fn(map_literal11_test.foo, MapTovoid()); |
| 20 map_literal11_test.main = function() { |
| 21 let map = dart.map({}, core.String, dart.dynamic); |
| 22 map_literal11_test.foo(map); |
| 23 }; |
| 24 dart.fn(map_literal11_test.main, VoidTovoid()); |
| 25 // Exports: |
| 26 exports.map_literal11_test = map_literal11_test; |
| 27 }); |
OLD | NEW |