Bug 71493

Summary: __defineGetter__/__defineSetter__ should be implemented in terms of JSObject::defineOwnProperty
Product: WebKit Reporter: Sam Weinig <sam>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: barraclough
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Description Sam Weinig 2011-11-03 11:50:13 PDT
Right now, __defineGetter__/__defineSetter__ are implemented by calling virtual (actually static on the MethodTable) JSObject::defineGetter/defineSetter, but we could implement it in terms of JSObject::defineOwnProperty and remove two virtual functions from the MethodTable.  This would also be more forward looking, by implementing the legacy __defineGetter__/__defineSetter__ in terms of the now specified defineOwnProperty.

If we do this, we need to make sure we continue block the specific uses of __defineGetter__/__defineSetter__ in JSLocation and JSDOMWindow.
Comment 1 Gavin Barraclough 2012-02-29 00:26:55 PST

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