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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: test/codegen/expect/script.js
diff --git a/test/codegen/expect/script.js b/test/codegen/expect/script.js
new file mode 100755
index 0000000000000000000000000000000000000000..6fec583338991d028eb0c85da3746d2f8dfbc3d8
--- /dev/null
+++ b/test/codegen/expect/script.js
@@ -0,0 +1,18 @@
+#!/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
+dart_library.library('script', null, /* Imports */[
+ "dart_runtime/dart",
+ 'dart/core'
+], /* Lazy imports */[
+], function(exports, dart, core) {
+ 'use strict';
+ let dartx = dart.dartx;
+ function main(args) {
+ let name = args[dartx.join](' ');
+ if (name == '')
+ name = 'world';
+ core.print(`hello ${name}`);
+ }
+ dart.fn(main, dart.void, [core.List$(core.String)]);
+ // Exports:
+ exports.main = main;
+});

Powered by Google App Engine
This is Rietveld 408576698