| Index: test/mjsunit/harmony/classes.js
|
| diff --git a/test/mjsunit/harmony/classes.js b/test/mjsunit/harmony/classes.js
|
| index 5cea2a98e5901990a0f9caeb36b3e57750770768..29ffbf8d7de2ca507324bd9becb13c6734dd0c69 100644
|
| --- a/test/mjsunit/harmony/classes.js
|
| +++ b/test/mjsunit/harmony/classes.js
|
| @@ -805,6 +805,28 @@ function assertAccessorDescriptor(object, name) {
|
| assertThrows(function() {
|
| class C {
|
| constructor() {
|
| + super.method();
|
| + super(this);
|
| + }
|
| + }; new C();
|
| + }, TypeError);
|
| + assertThrows(function() {
|
| + class C {
|
| + constructor() {
|
| + super(super.method());
|
| + }
|
| + }; new C();
|
| + }, TypeError);
|
| + assertThrows(function() {
|
| + class C {
|
| + constructor() {
|
| + super(super());
|
| + }
|
| + }; new C();
|
| + }, TypeError);
|
| + assertThrows(function() {
|
| + class C {
|
| + constructor() {
|
| super(1, 2, Object.getPrototypeOf(this));
|
| }
|
| }; new C();
|
| @@ -848,4 +870,10 @@ function assertAccessorDescriptor(object, name) {
|
| }
|
| };
|
| new C3();
|
| +
|
| + class C4 extends Object {
|
| + constructor() {
|
| + super(new super());
|
| + }
|
| + }; new C4();
|
| }());
|
|
|