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

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

Issue 1879373004: Implement modular compilation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 8 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/expect/domtest.txt ('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
index bcc446a821601bff7c585f0c95be59ce0e598e10..2d017f20d3318914e0278d086cca190b85171c30 100644
--- a/test/codegen/expect/es6_modules.js
+++ b/test/codegen/expect/es6_modules.js
@@ -1,29 +1,27 @@
-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) {
+export const es6_modules = Object.create(null);
+import { core, dart, dartx } from 'dart_sdk';
+es6_modules.Callback = dart.typedef('Callback', () => dart.functionType(dart.void, [], {i: core.int}));
+es6_modules.A = class A extends core.Object {};
+es6_modules._A = class _A extends core.Object {};
+es6_modules.B$ = dart.generic(T => {
class B extends core.Object {}
return B;
});
-let B = B$();
-const _B$ = dart.generic(function(T) {
+es6_modules.B = es6_modules.B$();
+es6_modules._B$ = dart.generic(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";
-dart.defineLazyProperties(exports, {
+es6_modules._B = es6_modules._B$();
+es6_modules.f = function() {
+};
+dart.fn(es6_modules.f);
+es6_modules._f = function() {
+};
+dart.fn(es6_modules._f);
+es6_modules.constant = "abc";
+es6_modules.finalConstant = "abc";
+dart.defineLazy(es6_modules, {
get lazy() {
return dart.fn(() => {
core.print('lazy');
@@ -31,8 +29,8 @@ dart.defineLazyProperties(exports, {
}, core.String, [])();
}
});
-exports.mutable = "abc";
-dart.defineLazyProperties(exports, {
+es6_modules.mutable = "abc";
+dart.defineLazy(es6_modules, {
get lazyMutable() {
return dart.fn(() => {
core.print('lazyMutable');
@@ -41,11 +39,3 @@ dart.defineLazyProperties(exports, {
},
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/expect/domtest.txt ('k') | test/codegen/expect/es6_modules.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698