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

Unified Diff: test/codegen/expect/sunflower/sunflower.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/sunflower/dom.js ('k') | test/codegen/expect/temps.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/sunflower/sunflower.js
diff --git a/test/codegen/expect/sunflower/sunflower.js b/test/codegen/expect/sunflower/sunflower.js
index ec7f75ccde32fc1c5167476ed1fef91e27ae5798..afb8dc8e9f73fd9c508d37da0b2fb3d006f6f9fe 100644
--- a/test/codegen/expect/sunflower/sunflower.js
+++ b/test/codegen/expect/sunflower/sunflower.js
@@ -47,14 +47,14 @@ var sunflower;
}
class Circle extends core.Object {
Circle(x, y, radius) {
- this.x = x;
- this.y = y;
- this.radius = radius;
+ dart.initField(Circle, this, 'x', x);
+ dart.initField(Circle, this, 'y', y);
+ dart.initField(Circle, this, 'radius', radius);
}
}
class CirclePainter extends core.Object {
CirclePainter() {
- this.color = ORANGE;
+ dart.initField(CirclePainter, this, 'color', ORANGE);
}
draw() {
exports.context.beginPath();
« no previous file with comments | « test/codegen/expect/sunflower/dom.js ('k') | test/codegen/expect/temps.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698