[Webkit-unassigned] [Bug 29503] Implement ES5 Object.defineProperty function

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 18 14:51:48 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=29503


Oliver Hunt <oliver at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #39791|                            |review?
               Flag|                            |




--- Comment #2 from Oliver Hunt <oliver at apple.com>  2009-09-18 14:51:48 PDT ---
Created an attachment (id=39791)
 --> (https://bugs.webkit.org/attachment.cgi?id=39791)
Implement ES5 Object.defineProperty function

https://bugs.webkit.org/show_bug.cgi?id=29503

Reviewed by NOBODY(OOPS!)

Implement Object.defineProperty.  This requires adding the API to
ObjectConstructor, along with a helper function that implements the
ES5 internal [[ToPropertyDescriptor]] function.  It then adds
JSObject::defineOwnProperty that implements the appropriate ES5 semantics.
Currently defineOwnProperty uses a delete followed by a put to redefine
attributes of a property, clearly this is less efficient than it could be
but we can improve this if it needs to be possible in future.
---
 33 files changed, 921 insertions(+), 73 deletions(-)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list