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

Unified Diff: test/codegen/expect/es6_modules.js

Issue 1612083002: Initial --modules=es6 support (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: addressed comments (legacy, doc) + test enum utils Created 4 years, 11 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
« no previous file with comments | « test/codegen/es6_modules.dart ('k') | test/codegen/expect/es6_modules.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/es6_modules.js
diff --git a/test/codegen/expect/es6_modules.js b/test/codegen/expect/es6_modules.js
new file mode 100644
index 0000000000000000000000000000000000000000..58de87d87f1e0fc5392e45cc46117d65ef50571d
--- /dev/null
+++ b/test/codegen/expect/es6_modules.js
@@ -0,0 +1,50 @@
+'use strict';
+const exports = {};
+import dart from "dart/_runtime";
+import core from "dart/core";
+let dartx = dart.dartx;
+const Callback = dart.typedef('Callback', () => dart.functionType(dart.void, [], {i: core.int}));
+class A extends core.Object {}
+class _A extends core.Object {}
+const B$ = dart.generic(function(T) {
+ class B extends core.Object {}
+ return B;
+});
+let B = B$();
+const _B$ = dart.generic(function(T) {
+ class _B extends core.Object {}
+ return _B;
+});
+let _B = _B$();
+function f() {
+}
+dart.fn(f);
+function _f() {
+}
+dart.fn(_f);
+const constant = "abc";
+exports.finalConstant = "abc";
+exports.mutable = "abc";
+dart.defineLazyProperties(exports, {
+ get lazy() {
+ return dart.as(dart.fn(() => {
+ core.print('lazy');
+ return "abc";
+ })(), core.String);
+ },
+ get lazyMutable() {
+ return dart.as(dart.fn(() => {
+ core.print('lazyMutable');
+ return "abc";
+ })(), core.String);
+ },
+ set lazyMutable(_) {}
+});
+// Exports:
+exports.Callback = Callback;
+exports.A = A;
+exports.B$ = B$;
+exports.B = B;
+exports.f = f;
+exports.constant = constant;
+export default exports;
« no previous file with comments | « test/codegen/es6_modules.dart ('k') | test/codegen/expect/es6_modules.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698