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

Unified Diff: test/codegen/expect/covariance.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/covariance.js
diff --git a/test/codegen/expect/covariance.js b/test/codegen/expect/covariance.js
index e3d53be0aeaa3e435ba06864959541bd30a32626..5e4ba5e1854efc83b4ba779b1496d18054df4c1d 100644
--- a/test/codegen/expect/covariance.js
+++ b/test/codegen/expect/covariance.js
@@ -1,5 +1,6 @@
-var covariance;
-(function(exports) {
+var covariance = dart.defineLibrary(covariance, {});
+var core = dart.lazyImport(core);
+(function(exports, core) {
'use strict';
let _t = Symbol('_t');
let Foo$ = dart.generic(function(T) {
@@ -38,4 +39,4 @@ var covariance;
exports.Foo = Foo;
exports.Bar = Bar;
exports.main = main;
-})(covariance || (covariance = {}));
+})(covariance, core);

Powered by Google App Engine
This is Rietveld 408576698