haikuwebkit/LayoutTests/js/script-tests/try-catch-try-try-catch-try...

31 lines
611 B
JavaScript

description(
"Tests what would happen if you a throwing operation at the beginning of a finally blow that gets inlined inside a complicated catch/finally stack. The correct outcome is for this test to not crash during exception throwing."
);
function foo() {
try{
N
} catch(x) {
try {
try {
w
} catch(x) {
try {
} finally {
return
}
}
} catch (a) {
}
} finally {
z
}
}
try {
foo();
} catch (e) {
testPassed("It worked.");
}