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

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

Issue 963343002: implement private members, fixes #74 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 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/math/math.js ('k') | test/codegen/expect/typed_data/typed_data.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/methods/methods.js
diff --git a/test/codegen/expect/methods/methods.js b/test/codegen/expect/methods/methods.js
index a1a7f3d8e50df96956a13bf538aefe34cb4e1a63..d01349751efe33bcf150860388c13f7f1051b8cd 100644
--- a/test/codegen/expect/methods/methods.js
+++ b/test/codegen/expect/methods/methods.js
@@ -1,9 +1,10 @@
var methods;
(function(exports) {
'use strict';
+ let _c = Symbol('_c');
class A extends dart.Object {
A() {
- this._c = 3;
+ this[_c] = 3;
}
x() {
return 42;
@@ -34,10 +35,10 @@ var methods;
}
set b(b) {}
get c() {
- return this._c;
+ return this[_c];
}
set c(c) {
- this._c = c;
+ this[_c] = c;
}
}
class Bar extends dart.Object {
« no previous file with comments | « test/codegen/expect/math/math.js ('k') | test/codegen/expect/typed_data/typed_data.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698