blob: 66ccf014578f0b35d2d851dd6305b7cb505f13d2 [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
shouldBe(RegExp.prototype.hasOwnProperty('exec'), true);
shouldBe(delete RegExp.prototype.exec, true);
shouldBe(RegExp.prototype.hasOwnProperty('exec'), false);
shouldBe(delete RegExp.prototype.exec, true);
shouldBe(RegExp.prototype.hasOwnProperty('exec'), false);