diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-06-29 17:26:51 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-06-29 17:26:51 +0200 |
commit | 33af2720f26c2b25bc7f75ce7eb454ff99db6d35 (patch) | |
tree | 9a38f0c96420edf503eebd6325dd8d2d8249f653 /deps/v8/test/mjsunit/strict-mode-eval.js | |
parent | 6afdca885adeeeed9eef8cbb01c3d97af0bc084d (diff) | |
download | android-node-v8-33af2720f26c2b25bc7f75ce7eb454ff99db6d35.tar.gz android-node-v8-33af2720f26c2b25bc7f75ce7eb454ff99db6d35.tar.bz2 android-node-v8-33af2720f26c2b25bc7f75ce7eb454ff99db6d35.zip |
Upgrade V8 to 3.4.8
Diffstat (limited to 'deps/v8/test/mjsunit/strict-mode-eval.js')
-rw-r--r-- | deps/v8/test/mjsunit/strict-mode-eval.js | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/deps/v8/test/mjsunit/strict-mode-eval.js b/deps/v8/test/mjsunit/strict-mode-eval.js index 018ed9e075..391daaa37c 100644 --- a/deps/v8/test/mjsunit/strict-mode-eval.js +++ b/deps/v8/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(); } |