[JSC] AI should not propagate AbstractValue relying on constant folding phase
[WebKit-https.git] / JSTests / stress / global-import-function-should-return-a-promise-when-clearing-exceptions.js
1 //@ requireOptions("--maxPerThreadStackUsage=300000", "--exceptionStackTraceLimit=0", "--defaultErrorStackTraceLimit=0")
2
3 function bar(v) {
4     !v
5     foo();
6 }
7 function foo() {
8     eval(`bar(import(0));`);
9 }
10
11 var exception;
12 try {
13     foo();
14 } catch (e) {
15     exception = e;
16 }
17
18 if (exception != "RangeError: Maximum call stack size exceeded.")
19     throw "FAILED";