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

14 lines
222 B
JavaScript

function foo(o) {
return o.r.input;
}
noInline(foo);
Object.assign({}, RegExp);
for (let i = 0; i < 10000; i++)
foo({r: RegExp});
let input = foo({r: RegExp});
if (typeof input !== "string")
throw "FAILED";