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

Unified Diff: test/codegen/expect/map_keys.js

Issue 1879373004: Implement modular compilation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 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
« no previous file with comments | « test/codegen/expect/lib-typed_data-all.js ('k') | test/codegen/expect/map_keys.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/map_keys.js
diff --git a/test/codegen/expect/map_keys.js b/test/codegen/expect/map_keys.js
index 2fb789530f1a404ff6045093ab568a4c1ea5b74a..bef0e31aff15c6fff0b59cece5026036a87588f7 100644
--- a/test/codegen/expect/map_keys.js
+++ b/test/codegen/expect/map_keys.js
@@ -1,21 +1,23 @@
dart_library.library('map_keys', null, /* Imports */[
- 'dart/_runtime',
- 'dart/core',
- 'dart/math'
-], /* Lazy imports */[
-], function(exports, dart, core, math) {
+ 'dart_sdk'
+], function(exports, dart_sdk) {
'use strict';
- let dartx = dart.dartx;
- function main() {
+ const core = dart_sdk.core;
+ const math = dart_sdk.math;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const map_keys = Object.create(null);
+ 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.notNull(math.Random.new().nextInt(2)) + 2}`]: 4, '5': 6}));
let x = '3';
core.print(dart.map(['1', 2, x, 4, '5', 6]));
core.print(dart.map(['1', 2, null, 4, '5', 6]));
- }
- dart.fn(main);
+ };
+ dart.fn(map_keys.main);
// Exports:
- exports.main = main;
+ exports.map_keys = map_keys;
});
+
//# sourceMappingURL=map_keys.js.map
« no previous file with comments | « test/codegen/expect/lib-typed_data-all.js ('k') | test/codegen/expect/map_keys.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698