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