OLD | NEW |
1 dart_library.library('script', null, /* Imports */[ | 1 dart_library.library('script', null, /* Imports */[ |
2 "dart/_runtime", | 2 'dart/_runtime', |
3 'dart/core' | 3 'dart/core' |
4 ], /* Lazy imports */[ | 4 ], /* Lazy imports */[ |
5 ], function(exports, dart, core) { | 5 ], function(exports, dart, core) { |
6 'use strict'; | 6 'use strict'; |
7 let dartx = dart.dartx; | 7 let dartx = dart.dartx; |
8 function main(args) { | 8 function main(args) { |
9 let name = args[dartx.join](' '); | 9 let name = args[dartx.join](' '); |
10 if (name == '') name = 'world'; | 10 if (name == '') name = 'world'; |
11 core.print(`hello ${name}`); | 11 core.print(`hello ${name}`); |
12 } | 12 } |
13 dart.fn(main, dart.void, [core.List$(core.String)]); | 13 dart.fn(main, dart.void, [core.List$(core.String)]); |
14 // Exports: | 14 // Exports: |
15 exports.main = main; | 15 exports.main = main; |
16 }); | 16 }); |
OLD | NEW |