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

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

Issue 1122133003: fixes #157, renaming local library identifiers if needed. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: new approach Created 5 years, 7 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/names.js
diff --git a/test/codegen/expect/names.js b/test/codegen/expect/names.js
index 190c6fb48df0d845a42ae630e33a20c4ae85d403..c47793e13e755a357c96d0b059daac43d7e4e742 100644
--- a/test/codegen/expect/names.js
+++ b/test/codegen/expect/names.js
@@ -1,5 +1,6 @@
-var names;
-(function(exports) {
+var names = dart.defineLibrary(names, {});
+var core = dart.lazyImport(core);
+(function(exports, core) {
'use strict';
exports.exports = 42;
let _foo$ = Symbol('_foo');
@@ -47,4 +48,4 @@ var names;
exports.Frame = Frame;
exports.Frame2 = Frame2;
exports.main = main;
-})(names || (names = {}));
+})(names, core);

Powered by Google App Engine
This is Rietveld 408576698