projects
/
platform
/
upstream
/
js.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 1.0.0
[platform/upstream/js.git]
/
js
/
src
/
jit-test
/
tests
/
jaeger
/
bug563000
/
test-throwhook-1.js
1
// |jit-test| debug
2
var result1 = "unset";
3
var result2 = "failure";
4
function main() {
5
result1 = "failure";
6
try {
7
throw "something";
8
} catch(e) {
9
result2 = "success";
10
}
11
}
12
function nop() { }
13
14
setDebug(true);
15
setThrowHook("result1 = 'success'; nop()");
16
17
main();
18
assertEq(result1, "success");
19
assertEq(result2, "success");