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

Unified Diff: test/mjsunit/harmony/class-privates-delete.js

Issue 2329703002: Private fields
Patch Set: some comments Created 4 years, 3 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/cctest/test-parsing.cc ('k') | test/mjsunit/harmony/class-privates-errors.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/class-privates-delete.js
diff --git a/test/mjsunit/harmony/class-fields-arguments.js b/test/mjsunit/harmony/class-privates-delete.js
similarity index 56%
copy from test/mjsunit/harmony/class-fields-arguments.js
copy to test/mjsunit/harmony/class-privates-delete.js
index 133957b4c1706c7db0d601a1c774e5f0f5a2fbd8..9a8cb91ef8784f2886017e7f25511847bd869be4 100644
--- a/test/mjsunit/harmony/class-fields-arguments.js
+++ b/test/mjsunit/harmony/class-privates-delete.js
@@ -2,13 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --harmony-class-fields
+// Flags: --harmony-private-class-fields
{
class C {
- a = (arguments[0] = 0, assertEquals(0, arguments[0]));
- b = assertEquals(arguments[0], undefined);
+ #a;
+ d() {
+ delete #a; // TODO(bakkot) this should be a syntax error
+ }
}
- new C;
+ (new C).d();
}
« no previous file with comments | « test/cctest/test-parsing.cc ('k') | test/mjsunit/harmony/class-privates-errors.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698