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

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

Issue 1347453002: fix a few more codegen issues: (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: run the tests too Created 5 years, 3 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 #!/usr/bin/env iojs
2 dart_library.library('script', null, /* Imports */[ 1 dart_library.library('script', null, /* Imports */[
3 "dart_runtime/dart", 2 "dart_runtime/dart",
4 'dart/core' 3 'dart/core'
5 ], /* Lazy imports */[ 4 ], /* Lazy imports */[
6 ], function(exports, dart, core) { 5 ], function(exports, dart, core) {
7 'use strict'; 6 'use strict';
8 let dartx = dart.dartx; 7 let dartx = dart.dartx;
9 function main(args) { 8 function main(args) {
10 let name = args[dartx.join](' '); 9 let name = args[dartx.join](' ');
11 if (name == '') 10 if (name == '')
12 name = 'world'; 11 name = 'world';
13 core.print(`hello ${name}`); 12 core.print(`hello ${name}`);
14 } 13 }
15 dart.fn(main, dart.void, [core.List$(core.String)]); 14 dart.fn(main, dart.void, [core.List$(core.String)]);
16 // Exports: 15 // Exports:
17 exports.main = main; 16 exports.main = main;
18 }); 17 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698