test262/implementation-contributed/javascriptcore/stress/bug-171786.js

16 lines
243 B
JavaScript

function foo(i, x) {
return String.prototype.big.call(x);
}
noInline(foo);
for (var i = 0; i < 1000; i++) {
try {
if (i < 200)
foo(i, "hello");
else
foo(i, undefined);
} catch(e) {
}
}