]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/static-function-delete.js
1 function shouldBe(actual
, expected
) {
2 if (actual
!== expected
)
3 throw new Error('bad value: ' + actual
);
6 shouldBe(RegExp
.prototype.hasOwnProperty('exec'), true);
7 shouldBe(delete RegExp
.prototype.exec
, true);
8 shouldBe(RegExp
.prototype.hasOwnProperty('exec'), false);
9 shouldBe(delete RegExp
.prototype.exec
, true);
10 shouldBe(RegExp
.prototype.hasOwnProperty('exec'), false);