test262/implementation-contributed/javascriptcore/stress/regress-192386.js

13 lines
188 B
JavaScript

//@ requireOptions("--jitPolicyScale=0")
function foo(x) {
try {
new x();
} catch {
}
}
foo(function() {});
for (let i = 0; i < 10000; ++i)
foo(() => undefined);