[JSC] Do not use asArrayModes() with Structures because it discards TypedArray inform...
[WebKit-https.git] / JSTests / stress / bound-function-tail-call-with-exception.js
1 //@ runNoJIT
2
3 function bar(a, idx)
4 {
5     "use strict";
6     if (idx > 0)
7       throw "Hello";
8     return a;
9 }
10
11 boundBar = bar.bind(null, 42);
12
13 function foo(a, idx)
14 {
15     "use strict";
16     return boundBar(idx);
17 }
18
19 boundFoo = foo.bind(null, 41);
20
21 try {
22     boundFoo(1);
23 } catch(e) {}