Index: test/mjsunit/harmony/super.js |
diff --git a/test/mjsunit/harmony/super.js b/test/mjsunit/harmony/super.js |
index 270c159e80b22a1c9b1389e76d8d1262068205c2..ab572b056f262e39dcf522d090cc9667c19309dd 100644 |
--- a/test/mjsunit/harmony/super.js |
+++ b/test/mjsunit/harmony/super.js |
@@ -1979,7 +1979,8 @@ TestKeyedSetterCreatingOwnPropertiesNonConfigurable(42, 43, 44); |
class Derived extends Base { |
constructor() { |
- super(); |
+ let r = super(); |
+ assertEquals(this, r); |
derivedCalled++; |
} |
} |
@@ -1995,7 +1996,8 @@ TestKeyedSetterCreatingOwnPropertiesNonConfigurable(42, 43, 44); |
class DerivedDerived extends Derived { |
constructor() { |
- super(); |
+ let r = super(); |
+ assertEquals(this, r); |
derivedDerivedCalled++; |
} |
} |
@@ -2015,7 +2017,8 @@ TestKeyedSetterCreatingOwnPropertiesNonConfigurable(42, 43, 44); |
} |
class Derived2 extends Base2 { |
constructor(v1, v2) { |
- super(v1); |
+ let r = super(v1); |
+ assertEquals(this, r); |
this.fromDerived = v2; |
} |
} |
@@ -2128,7 +2131,8 @@ TestKeyedSetterCreatingOwnPropertiesNonConfigurable(42, 43, 44); |
} |
class Derived extends Base { |
constructor(x) { |
- eval('super(x)'); |
+ let r = eval('super(x)'); |
+ assertEquals(this, r); |
} |
} |
let d = new Derived(42); |
@@ -2145,7 +2149,8 @@ TestKeyedSetterCreatingOwnPropertiesNonConfigurable(42, 43, 44); |
} |
class Derived extends Base { |
constructor(x) { |
- (() => super(x))(); |
+ let r = (() => super(x))(); |
+ assertEquals(this, r); |
} |
} |
let d = new Derived(42); |
@@ -2231,7 +2236,8 @@ TestKeyedSetterCreatingOwnPropertiesNonConfigurable(42, 43, 44); |
} |
class Derived extends Base { |
constructor(x) { |
- eval('super(...[x])'); |
+ let r = eval('super(...[x])'); |
+ assertEquals(this, r); |
} |
} |
let d = new Derived(42); |
@@ -2248,7 +2254,8 @@ TestKeyedSetterCreatingOwnPropertiesNonConfigurable(42, 43, 44); |
} |
class Derived extends Base { |
constructor(x) { |
- (() => super(...[x]))(); |
+ let r = (() => super(...[x]))(); |
+ assertEquals(this, r); |
} |
} |
let d = new Derived(42); |