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

Unified Diff: test/codegen/expect/sunflower/dom.js

Issue 1093143004: fixes #52, fields shadowing getters/setters or other fields (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 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 accd3b1e5ea0bec03a406ba4626e23aeeb2bd8d0..ca8cd360c9f5d9a5d66edd34d1c59130a8d3cb4c 100644
--- a/test/codegen/expect/sunflower/dom.js
+++ b/test/codegen/expect/sunflower/dom.js
@@ -4,7 +4,7 @@ var dom;
class JsName extends core.Object {
JsName(opts) {
let name = opts && 'name' in opts ? opts.name : null;
- this.name = name;
+ dart.initField(JsName, this, 'name', name);
}
}
class Overload extends core.Object {
@@ -19,14 +19,14 @@ var dom;
class RenderingContext extends core.Object {}
class CanvasDrawingStyles extends core.Object {
CanvasDrawingStyles() {
- this.lineWidth = null;
- this.lineCap = null;
- this.lineJoin = null;
- this.miterLimit = null;
- this.lineDashOffset = null;
- this.font = null;
- this.textAlign = null;
- this.textBaseline = null;
+ dart.initField(CanvasDrawingStyles, this, 'lineWidth', null);
+ dart.initField(CanvasDrawingStyles, this, 'lineCap', null);
+ dart.initField(CanvasDrawingStyles, this, 'lineJoin', null);
+ dart.initField(CanvasDrawingStyles, this, 'miterLimit', null);
+ dart.initField(CanvasDrawingStyles, this, 'lineDashOffset', null);
+ dart.initField(CanvasDrawingStyles, this, 'font', null);
+ dart.initField(CanvasDrawingStyles, this, 'textAlign', null);
+ dart.initField(CanvasDrawingStyles, this, 'textBaseline', null);
}
}
class CanvasPathMethods extends core.Object {}
« 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