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

Unified Diff: test/codegen/expect/sunflower/dom.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/sunflower/dom.js
diff --git a/test/codegen/expect/sunflower/dom.js b/test/codegen/expect/sunflower/dom.js
index 24824110499cf6579f95adddf050d4c509092119..e710d6544c600ee61abff6d9a11e33e14d5926f1 100644
--- a/test/codegen/expect/sunflower/dom.js
+++ b/test/codegen/expect/sunflower/dom.js
@@ -1,5 +1,6 @@
-var dom;
-(function(exports) {
+var dom = dart.defineLibrary(dom, window);
+var core = dart.lazyImport(core);
+(function(exports, core) {
'use strict';
class JsName extends core.Object {
JsName(opts) {
@@ -41,4 +42,4 @@ var dom;
exports.RenderingContext = RenderingContext;
exports.CanvasDrawingStyles = CanvasDrawingStyles;
exports.CanvasPathMethods = CanvasPathMethods;
-})(dom || (dom = window));
+})(dom, core);

Powered by Google App Engine
This is Rietveld 408576698