Chromium Code Reviews| 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 |
|
Dan Ehrenberg
2016/09/10 04:30:28
Yes it should
|
| + } |
| } |
| - new C; |
| + (new C).d(); |
| } |