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

Unified Diff: pkg/dev_compiler/test/codegen_expected/map_keys.js

Issue 2797443007: fix #29182, generate top level const fields lazily (Closed)
Patch Set: fix Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: pkg/dev_compiler/test/codegen_expected/map_keys.js
diff --git a/pkg/dev_compiler/test/codegen_expected/map_keys.js b/pkg/dev_compiler/test/codegen_expected/map_keys.js
index a7641ed23031244422373655eefb9e455932cede..61a42cc99102ad26da9ae2b9bc6747528f360810 100644
--- a/pkg/dev_compiler/test/codegen_expected/map_keys.js
+++ b/pkg/dev_compiler/test/codegen_expected/map_keys.js
@@ -7,12 +7,12 @@ define(['dart_sdk'], function(dart_sdk) {
const map_keys = Object.create(null);
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
map_keys.main = function() {
- core.print(dart.map({'1': 2, '3': 4, '5': 6}));
- core.print(dart.map([1, 2, 3, 4, 5, 6]));
- core.print(dart.map({'1': 2, [dart.str`${dart.notNull(math.Random.new().nextInt(2)) + 2}`]: 4, '5': 6}));
+ core.print(dart.map({'1': 2, '3': 4, '5': 6}, core.String, core.int));
+ core.print(dart.map([1, 2, 3, 4, 5, 6], core.int, core.int));
+ core.print(dart.map({'1': 2, [dart.str`${dart.notNull(math.Random.new().nextInt(2)) + 2}`]: 4, '5': 6}, core.String, core.int));
let x = '3';
- core.print(dart.map(['1', 2, x, 4, '5', 6]));
- core.print(dart.map(['1', 2, null, 4, '5', 6]));
+ core.print(dart.map(['1', 2, x, 4, '5', 6], core.String, core.int));
+ core.print(dart.map(['1', 2, null, 4, '5', 6], core.String, core.int));
};
dart.fn(map_keys.main, VoidTodynamic());
dart.trackLibraries("map_keys", {"map_keys.dart": map_keys}, null);

Powered by Google App Engine
This is Rietveld 408576698