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

Side by Side Diff: test/codegen/expect/map_keys.js

Issue 1138793002: Tag closures with their types (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebase Created 5 years, 7 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
1 var map_keys = dart.defineLibrary(map_keys, {}); 1 var map_keys = dart.defineLibrary(map_keys, {});
2 var core = dart.import(core); 2 var core = dart.import(core);
3 var math = dart.import(math); 3 var math = dart.import(math);
4 (function(exports, core, math) { 4 (function(exports, core, math) {
5 'use strict'; 5 'use strict';
6 // Function main: () → dynamic
7 function main() { 6 function main() {
8 core.print(dart.map({'1': 2, '3': 4, '5': 6})); 7 core.print(dart.map({'1': 2, '3': 4, '5': 6}));
9 core.print(dart.map([1, 2, 3, 4, 5, 6])); 8 core.print(dart.map([1, 2, 3, 4, 5, 6]));
10 core.print(dart.map({'1': 2, [`${dart.notNull(new math.Random().nextInt(2)) + 2}`]: 4, '5': 6})); 9 core.print(dart.map({'1': 2, [`${dart.notNull(new math.Random().nextInt(2)) + 2}`]: 4, '5': 6}));
11 let x = '3'; 10 let x = '3';
12 core.print(dart.map(['1', 2, x, 4, '5', 6])); 11 core.print(dart.map(['1', 2, x, 4, '5', 6]));
13 core.print(dart.map(['1', 2, null, 4, '5', 6])); 12 core.print(dart.map(['1', 2, null, 4, '5', 6]));
14 } 13 }
14 dart.fn(main);
15 // Exports: 15 // Exports:
16 exports.main = main; 16 exports.main = main;
17 })(map_keys, core, math); 17 })(map_keys, core, math);
18 //# sourceMappingURL=map_keys.js.map 18 //# sourceMappingURL=map_keys.js.map
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698