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