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

Unified Diff: test/codegen/expect/methods.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/methods.js
diff --git a/test/codegen/expect/methods.js b/test/codegen/expect/methods.js
index 87611b28f46ae68001dd5b444540fe235628c2d7..19d21bab187793d715438d75d00d68612fbab59b 100644
--- a/test/codegen/expect/methods.js
+++ b/test/codegen/expect/methods.js
@@ -1,5 +1,6 @@
-var methods;
-(function(exports) {
+var methods = dart.defineLibrary(methods, {});
+var core = dart.lazyImport(core);
+(function(exports, core) {
'use strict';
let _c = Symbol('_c');
class A extends core.Object {
@@ -61,4 +62,4 @@ var methods;
exports.Bar = Bar;
exports.Foo = Foo;
exports.test = test;
-})(methods || (methods = {}));
+})(methods, core);

Powered by Google App Engine
This is Rietveld 408576698