[JSC] AI should not propagate AbstractValue relying on constant folding phase
[WebKit-https.git] / JSTests / stress / fromCharCode-exception-check.js
1 // This shouldn't crash.
2
3 try {
4     String.fromCharCode(Symbol(), new Proxy({}, { get() { } }));
5 } catch (e) {
6     if (!(e instanceof TypeError) || e.message !== "Cannot convert a symbol to a number")
7         throw new Error("bad error type or message" + e);
8 }