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

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

Issue 1263583005: implement exports, fixes #141 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: rebase Created 5 years, 4 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
(Empty)
1 #!/usr/bin/env iojs
vsm 2015/08/04 23:49:58 cute :-) Does this actually work? I assume dart_
Jennifer Messerly 2015/08/04 23:58:39 yeah, it doesn't work yet :| what we need here is
2 dart_library.library('script', null, /* Imports */[
3 "dart_runtime/dart",
4 'dart/core'
5 ], /* Lazy imports */[
6 ], function(exports, dart, core) {
7 'use strict';
8 let dartx = dart.dartx;
9 function main(args) {
10 let name = args[dartx.join](' ');
11 if (name == '')
12 name = 'world';
13 core.print(`hello ${name}`);
14 }
15 dart.fn(main, dart.void, [core.List$(core.String)]);
16 // Exports:
17 exports.main = main;
18 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698