| Index: test/mjsunit/harmony/classes.js
|
| diff --git a/test/mjsunit/harmony/classes.js b/test/mjsunit/harmony/classes.js
|
| index 416c9114b530aa9065c2f8402de03c9ca78f8f7c..42917704a5b3430e02cf214f8a9b673ee0426a84 100644
|
| --- a/test/mjsunit/harmony/classes.js
|
| +++ b/test/mjsunit/harmony/classes.js
|
| @@ -683,14 +683,14 @@ function assertAccessorDescriptor(object, name) {
|
|
|
|
|
| (function TestNameBindingConst() {
|
| - assertThrows('class C { constructor() { C = 42; } }', SyntaxError);
|
| - assertThrows('(class C { constructor() { C = 42; } })', SyntaxError);
|
| - assertThrows('class C { m() { C = 42; } }', SyntaxError);
|
| - assertThrows('(class C { m() { C = 42; } })', SyntaxError);
|
| - assertThrows('class C { get x() { C = 42; } }', SyntaxError);
|
| - assertThrows('(class C { get x() { C = 42; } })', SyntaxError);
|
| - assertThrows('class C { set x(_) { C = 42; } }', SyntaxError);
|
| - assertThrows('(class C { set x(_) { C = 42; } })', SyntaxError);
|
| + assertThrows('class C { constructor() { C = 42; } }; new C();', TypeError);
|
| + assertThrows('new (class C { constructor() { C = 42; } })', TypeError);
|
| + assertThrows('class C { m() { C = 42; } }; new C().m()', TypeError);
|
| + assertThrows('new (class C { m() { C = 42; } }).m()', TypeError);
|
| + assertThrows('class C { get x() { C = 42; } }; new C().x', TypeError);
|
| + assertThrows('(new (class C { get x() { C = 42; } })).x', TypeError);
|
| + assertThrows('class C { set x(_) { C = 42; } }; new C().x = 15;', TypeError);
|
| + assertThrows('(new (class C { set x(_) { C = 42; } })).x = 15;', TypeError);
|
| })();
|
|
|
|
|
|
|