Bug 145738
Summary: | Deleteting static function twice revives property with undefined | ||
---|---|---|---|
Product: | WebKit | Reporter: | Yusuke Suzuki <ysuzuki> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | fpizlo, ggaren |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Yusuke Suzuki
RegExp.prototype.hasOwnProperty('exec'); // true
delete RegExp.prototype.exec; // true
RegExp.prototype.hasOwnProperty('exec'); // false
delete RegExp.prototype.exec; // true
RegExp.prototype.hasOwnProperty('exec'); // true ???
This is because JSObject::deleteProperty set undefine by `putEntry` if `isValidOffset(...)` is false (deleted).
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Yusuke Suzuki
We'll fix this with issue 145705.
*** This bug has been marked as a duplicate of bug 145705 ***