blob: f87a5a44e513f66163cbb8bd80ff15a2a4858b40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Entering catch blocks via OSR is not possible (because the catch block
// is not compiled by Ion). Don't crash.
function f() {
var res = 0;
try {
throw 1;
} catch(e) {
for (var i=0; i<10; i++) {
res += 3;
}
}
assertEq(res, 30);
}
f();
|