[JSC] AI should not propagate AbstractValue relying on constant folding phase
[WebKit-https.git] / JSTests / stress / generator-throw-before-first-call.js
1 function unreachable()
2 {
3     throw new Error("NG");
4 }
5
6 function *gen()
7 {
8     unreachable();
9 }
10
11 var g = gen();
12 var error = new Error("OK");
13 var thrown = null;
14 try {
15     g.throw(error);
16 } catch (e) {
17     thrown = e;
18 }
19 if (thrown !== error)
20     unreachable();