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

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

Issue 1633003002: Add --modules=node support (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: regen sdk and expectations 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
Index: test/codegen/expect/node_modules.js
diff --git a/test/codegen/expect/es6_modules.js b/test/codegen/expect/node_modules.js
similarity index 87%
copy from test/codegen/expect/es6_modules.js
copy to test/codegen/expect/node_modules.js
index 58de87d87f1e0fc5392e45cc46117d65ef50571d..8992f90d28a5b5bcd7a3fc6abbd7fff29043e895 100644
--- a/test/codegen/expect/es6_modules.js
+++ b/test/codegen/expect/node_modules.js
@@ -1,7 +1,6 @@
'use strict';
-const exports = {};
-import dart from "dart/_runtime";
-import core from "dart/core";
+let dart = require("dart/_runtime");
+let core = require("dart/core");
let dartx = dart.dartx;
const Callback = dart.typedef('Callback', () => dart.functionType(dart.void, [], {i: core.int}));
class A extends core.Object {}
@@ -10,12 +9,12 @@ const B$ = dart.generic(function(T) {
class B extends core.Object {}
return B;
});
-let B = B$();
+const B = B$();
const _B$ = dart.generic(function(T) {
class _B extends core.Object {}
return _B;
});
-let _B = _B$();
+const _B = _B$();
function f() {
}
dart.fn(f);
@@ -47,4 +46,3 @@ exports.B$ = B$;
exports.B = B;
exports.f = f;
exports.constant = constant;
-export default exports;

Powered by Google App Engine
This is Rietveld 408576698