Index: test/codegen_expected/language/map_literal11_test.js |
diff --git a/test/codegen_expected/language/map_literal11_test.js b/test/codegen_expected/language/map_literal11_test.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3b8527ec89f1006d132b0eec41536e6819d6e594 |
--- /dev/null |
+++ b/test/codegen_expected/language/map_literal11_test.js |
@@ -0,0 +1,27 @@ |
+dart_library.library('language/map_literal11_test', null, /* Imports */[ |
+ 'dart_sdk', |
+ 'expect' |
+], function load__map_literal11_test(exports, dart_sdk, expect) { |
+ 'use strict'; |
+ const core = dart_sdk.core; |
+ const dart = dart_sdk.dart; |
+ const dartx = dart_sdk.dartx; |
+ const expect$ = expect.expect; |
+ const map_literal11_test = Object.create(null); |
+ let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [])))(); |
+ let dynamicTobool = () => (dynamicTobool = dart.constFn(dart.definiteFunctionType(core.bool, [dart.dynamic])))(); |
+ let MapTovoid = () => (MapTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [core.Map])))(); |
+ map_literal11_test.foo = function(m) { |
+ expect$.Expect.throws(dart.fn(() => { |
+ m[dartx.set](23, 23); |
+ }, VoidTovoid()), dart.fn(e => core.TypeError.is(e), dynamicTobool())); |
+ }; |
+ dart.fn(map_literal11_test.foo, MapTovoid()); |
+ map_literal11_test.main = function() { |
+ let map = dart.map({}, core.String, dart.dynamic); |
+ map_literal11_test.foo(map); |
+ }; |
+ dart.fn(map_literal11_test.main, VoidTovoid()); |
+ // Exports: |
+ exports.map_literal11_test = map_literal11_test; |
+}); |