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

Unified Diff: test/codegen/expect/opassign.js

Issue 1090313002: 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/names.js ('k') | test/codegen/expect/sunflower/dom.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/opassign.js
diff --git a/test/codegen/expect/opassign.js b/test/codegen/expect/opassign.js
index 52ca848086e9c69146fd2514640f9b024eb65184..28666815c60cde1b3f3fb99cc69b6bd62c2c73e2 100644
--- a/test/codegen/expect/opassign.js
+++ b/test/codegen/expect/opassign.js
@@ -18,9 +18,16 @@ var opassign;
return exports._foo;
}
});
+ let x = Symbol('x');
class Foo extends core.Object {
Foo() {
- this.x = 100;
+ this[x] = 100;
+ }
+ get x() {
+ return this[x];
+ }
+ set x(value) {
+ this[x] = value;
}
}
// Function main: () → dynamic
« no previous file with comments | « test/codegen/expect/names.js ('k') | test/codegen/expect/sunflower/dom.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698