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; |