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

Unified Diff: test/codegen/expect/methods.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/fieldtest.js ('k') | test/codegen/expect/names.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/methods.js
diff --git a/test/codegen/expect/methods.js b/test/codegen/expect/methods.js
index 708b0ce457c45f68eb0864161f508121862d41f6..2c47380e70901d31e853ee61e22645c1dd1cc89f 100644
--- a/test/codegen/expect/methods.js
+++ b/test/codegen/expect/methods.js
@@ -4,7 +4,7 @@ var methods;
let _c = Symbol('_c');
class A extends core.Object {
A() {
- this[_c] = 3;
+ dart.initField(A, this, _c, 3);
}
x() {
return 42;
@@ -48,7 +48,7 @@ var methods;
}
class Foo extends core.Object {
Foo() {
- this.bar = new Bar();
+ dart.initField(Foo, this, 'bar', new Bar());
}
}
// Function test: () → dynamic
« no previous file with comments | « test/codegen/expect/fieldtest.js ('k') | test/codegen/expect/names.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698