Bug 145738

Summary: Deleteting static function twice revives property with undefined
Product: WebKit Reporter: Yusuke Suzuki <ysuzuki>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: fpizlo, ggaren
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

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 ***