comparison: js/src/jit-test/tests/basic/evaluate-catchTermination.js
js/src/jit-test/tests/basic/evaluate-catchTermination.js
- branch
- TOR_BUG_3246
- changeset 7
- 129ffea94266
equal
deleted
inserted
replaced
|
1 // Test evaluate's catchTermination option. |
|
2 |
|
3 var x = 0; |
|
4 assertEq(evaluate('x = 1; terminate(); x = 2;', { catchTermination: true }), |
|
5 "terminated"); |
|
6 assertEq(x, 1); |