Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: test/codegen_expected/language/map_literal11_test.js

Issue 2211293002: Reify type params on map literals (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Remove unnecessary null check Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 });
OLDNEW
« no previous file with comments | « test/codegen_expected/language/map_literal10_test.js ('k') | test/codegen_expected/language/map_literal1_test_none_multi.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698