Bug 145738 - Deleteting static function twice revives property with undefined
Summary: Deleteting static function twice revives property with undefined
Status: RESOLVED DUPLICATE of bug 145705
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-07 12:55 PDT by Yusuke Suzuki
Modified: 2015-06-07 13:44 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuke Suzuki 2015-06-07 12:55:17 PDT
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).
Comment 1 Yusuke Suzuki 2015-06-07 13:44:52 PDT
We'll fix this with issue 145705.

*** This bug has been marked as a duplicate of bug 145705 ***