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

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: 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/opassign.js ('k') | test/codegen/expect/sunflower/sunflower.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..4cf8d2f333e4dd419218d7a9d0d239731ad3d299 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.import(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);
« no previous file with comments | « test/codegen/expect/opassign.js ('k') | test/codegen/expect/sunflower/sunflower.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698