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

Unified Diff: test/codegen/expect/script.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/opassign.txt ('k') | test/codegen/expect/script.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/script.js
diff --git a/test/codegen/expect/script.js b/test/codegen/expect/script.js
index c69783b4d25d121b028c65ceb2d67c737c1a6038..472596a2801b7f3a6aa62f88311f6364b45106a2 100644
--- a/test/codegen/expect/script.js
+++ b/test/codegen/expect/script.js
@@ -1,16 +1,17 @@
dart_library.library('script', null, /* Imports */[
- 'dart/_runtime',
- 'dart/core'
-], /* Lazy imports */[
-], function(exports, dart, core) {
+ 'dart_sdk'
+], function(exports, dart_sdk) {
'use strict';
- let dartx = dart.dartx;
- function main(args) {
+ const core = dart_sdk.core;
+ const dart = dart_sdk.dart;
+ const dartx = dart_sdk.dartx;
+ const script = Object.create(null);
+ script.main = function(args) {
let name = args[dartx.join](' ');
if (name == '') name = 'world';
core.print(`hello ${name}`);
- }
- dart.fn(main, dart.void, [core.List$(core.String)]);
+ };
+ dart.fn(script.main, dart.void, [core.List$(core.String)]);
// Exports:
- exports.main = main;
+ exports.script = script;
});
« no previous file with comments | « test/codegen/expect/opassign.txt ('k') | test/codegen/expect/script.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698