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

Side by Side 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 unified diff | Download patch
OLDNEW
1 dart_library.library('script', null, /* Imports */[ 1 dart_library.library('script', null, /* Imports */[
2 'dart/_runtime', 2 'dart_sdk'
3 'dart/core' 3 ], function(exports, dart_sdk) {
4 ], /* Lazy imports */[
5 ], function(exports, dart, core) {
6 'use strict'; 4 'use strict';
7 let dartx = dart.dartx; 5 const core = dart_sdk.core;
8 function main(args) { 6 const dart = dart_sdk.dart;
7 const dartx = dart_sdk.dartx;
8 const script = Object.create(null);
9 script.main = function(args) {
9 let name = args[dartx.join](' '); 10 let name = args[dartx.join](' ');
10 if (name == '') name = 'world'; 11 if (name == '') name = 'world';
11 core.print(`hello ${name}`); 12 core.print(`hello ${name}`);
12 } 13 };
13 dart.fn(main, dart.void, [core.List$(core.String)]); 14 dart.fn(script.main, dart.void, [core.List$(core.String)]);
14 // Exports: 15 // Exports:
15 exports.main = main; 16 exports.script = script;
16 }); 17 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698