| Index: test/mjsunit/harmony/object-literals-super.js
|
| diff --git a/test/mjsunit/harmony/object-literals-super.js b/test/mjsunit/harmony/object-literals-super.js
|
| index 3d713517ce14d0d50aa52396113e2f577018d871..ccf492bf5874ac471b804895fc27392239d8eb8b 100644
|
| --- a/test/mjsunit/harmony/object-literals-super.js
|
| +++ b/test/mjsunit/harmony/object-literals-super.js
|
| @@ -141,16 +141,26 @@
|
| };
|
| var o = {
|
| __proto__: p,
|
| - 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()');
|
| }
|
| };
|
| - assertSame(1, o.eval());
|
| + o.evalM();
|
| + o.evalX();
|
| + o.globalEval1();
|
| + o.globalEval2();
|
| })();
|
|
|
|
|
|
|