| Index: test/mjsunit/strict-mode-eval.js
|
| diff --git a/test/mjsunit/strict-mode-eval.js b/test/mjsunit/strict-mode-eval.js
|
| index 018ed9e0755ac51763f9ac84bf927434f58a4111..391daaa37c6fdb996faa8878492c2eea4ed2abc3 100644
|
| --- a/test/mjsunit/strict-mode-eval.js
|
| +++ b/test/mjsunit/strict-mode-eval.js
|
| @@ -42,36 +42,44 @@ eval_alias(code3);
|
| eval_alias(code4);
|
|
|
| function strict1() {
|
| + var exception = false;
|
| try {
|
| eval(code1);
|
| - assertUnreachable("did not throw exception");
|
| } catch (e) {
|
| + exception = true;
|
| assertInstanceof(e, SyntaxError);
|
| }
|
| + assertTrue(exception);
|
|
|
| function strict2() {
|
| + var exception = false;
|
| try {
|
| eval(code2);
|
| - assertUnreachable("did not throw exception");
|
| } catch (e) {
|
| + exception = true;
|
| assertInstanceof(e, SyntaxError);
|
| }
|
| + assertTrue(exception);
|
|
|
| function strict3() {
|
| + var exception = false;
|
| try {
|
| eval(code3);
|
| - assertUnreachable("did not throw exception");
|
| } catch (e) {
|
| + exception = true;
|
| assertInstanceof(e, SyntaxError);
|
| }
|
| + assertTrue(exception);
|
|
|
| function strict4() {
|
| + var exception = false;
|
| try {
|
| eval(code4);
|
| - assertUnreachable("did not throw exception");
|
| } catch (e) {
|
| + exception = true;
|
| assertInstanceof(e, SyntaxError);
|
| }
|
| + assertTrue(exception);
|
| }
|
| strict4();
|
| }
|
|
|