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

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

Issue 1989663002: fix #470, string interpolation now respects Dart toString (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 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
« no previous file with comments | « test/codegen/expect/expect/expect.js ('k') | test/codegen/expect/map_keys.js.map » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart_library.library('map_keys', null, /* Imports */[ 1 dart_library.library('map_keys', null, /* Imports */[
2 'dart_sdk' 2 'dart_sdk'
3 ], function(exports, dart_sdk) { 3 ], function(exports, dart_sdk) {
4 'use strict'; 4 'use strict';
5 const core = dart_sdk.core; 5 const core = dart_sdk.core;
6 const math = dart_sdk.math; 6 const math = dart_sdk.math;
7 const dart = dart_sdk.dart; 7 const dart = dart_sdk.dart;
8 const dartx = dart_sdk.dartx; 8 const dartx = dart_sdk.dartx;
9 const map_keys = Object.create(null); 9 const map_keys = Object.create(null);
10 map_keys.main = function() { 10 map_keys.main = function() {
11 core.print(dart.map({'1': 2, '3': 4, '5': 6})); 11 core.print(dart.map({'1': 2, '3': 4, '5': 6}));
12 core.print(dart.map([1, 2, 3, 4, 5, 6])); 12 core.print(dart.map([1, 2, 3, 4, 5, 6]));
13 core.print(dart.map({'1': 2, [`${dart.notNull(math.Random.new().nextInt(2)) + 2}`]: 4, '5': 6})); 13 core.print(dart.map({'1': 2, [dart.str`${dart.notNull(math.Random.new().next Int(2)) + 2}`]: 4, '5': 6}));
14 let x = '3'; 14 let x = '3';
15 core.print(dart.map(['1', 2, x, 4, '5', 6])); 15 core.print(dart.map(['1', 2, x, 4, '5', 6]));
16 core.print(dart.map(['1', 2, null, 4, '5', 6])); 16 core.print(dart.map(['1', 2, null, 4, '5', 6]));
17 }; 17 };
18 dart.fn(map_keys.main); 18 dart.fn(map_keys.main);
19 // Exports: 19 // Exports:
20 exports.map_keys = map_keys; 20 exports.map_keys = map_keys;
21 }); 21 });
22 22
23 //# sourceMappingURL=map_keys.js.map 23 //# sourceMappingURL=map_keys.js.map
OLDNEW
« no previous file with comments | « test/codegen/expect/expect/expect.js ('k') | test/codegen/expect/map_keys.js.map » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698