]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/static-function-delete.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / static-function-delete.js
CommitLineData
ed1e77d3
A
1function shouldBe(actual, expected) {
2 if (actual !== expected)
3 throw new Error('bad value: ' + actual);
4}
5
6shouldBe(RegExp.prototype.hasOwnProperty('exec'), true);
7shouldBe(delete RegExp.prototype.exec, true);
8shouldBe(RegExp.prototype.hasOwnProperty('exec'), false);
9shouldBe(delete RegExp.prototype.exec, true);
10shouldBe(RegExp.prototype.hasOwnProperty('exec'), false);