blob: 6ca2742df1c8d98386471ef8a9347b26cea01ff9 [file] [log] [blame]
function assert(b) {
if (!b)
throw new Error;
}
function test1() {
function getMultiline(o) {
return o.multiline;
}
noInline(getMultiline);
RegExp.foo = 42;
const o = {};
o.__proto__ = RegExp;
RegExp.multiline = false;
for (let i = 0; i < 5000000; ++i) {
assert(getMultiline(o) === false);
}
delete RegExp.foo;
for (let i = 0; i < 5000000; ++i) {
assert(getMultiline(o) === false);
}
}
test1();