Index: test/mjsunit/harmony/super.js |
diff --git a/test/mjsunit/harmony/super.js b/test/mjsunit/harmony/super.js |
index 87fceafb299bceffd8fead995e1e4a45f03705c7..1a0dd2add796fc9afb0ed27c807e295555a3eaef 100644 |
--- a/test/mjsunit/harmony/super.js |
+++ b/test/mjsunit/harmony/super.js |
@@ -2076,17 +2076,27 @@ TestKeyedSetterCreatingOwnPropertiesNonConfigurable(42, 43, 44); |
get x() { return 2; } |
} |
class Derived extends Base { |
- eval() { |
- assertSame(super.x, eval('super.x')); |
- assertSame(super.m(), eval('super.m()')); |
- // Global eval. |
+ evalM() { |
+ assertEquals(1, eval('super.m()')); |
+ } |
+ evalX() { |
+ assertEquals(2, eval('super.x')); |
+ } |
+ globalEval1() { |
+ assertThrows('super.x', SyntaxError); |
+ assertThrows('super.m()', SyntaxError); |
+ } |
+ globalEval2() { |
+ super.x; |
assertThrows('super.x', SyntaxError); |
assertThrows('super.m()', SyntaxError); |
- return eval('super.m()'); |
} |
} |
let d = new Derived(); |
- assertSame(1, d.eval()); |
+ d.globalEval1(); |
+ d.globalEval2(); |
+ d.evalM(); |
+ d.evalX(); |
})(); |