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

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: rebase and format 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
« no previous file with comments | « test/codegen/expect/misc.js ('k') | test/codegen/expect/opassign.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/names.js
diff --git a/test/codegen/expect/names.js b/test/codegen/expect/names.js
index 190c6fb48df0d845a42ae630e33a20c4ae85d403..40710ab76e35c13c0694914ba7981e5f54df0c58 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.import(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);
« no previous file with comments | « test/codegen/expect/misc.js ('k') | test/codegen/expect/opassign.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698