[Webkit-unassigned] [Bug 55171] New: Omitted value field in descriptor passed to Object.defineProperty is mishandled

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 24 12:09:30 PST 2011


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

           Summary: Omitted value field in descriptor passed to
                    Object.defineProperty is mishandled
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ES5
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jwalden+bwo at mit.edu


jsc behavior:

> typeof Object.defineProperty(Object.defineProperty({}, "p", { value: 7, writable: false, configurable: false, enumerable: true }), "p", { writable: false })
Exception: TypeError: Attempting to change value of a readonly property.

Correct behavior:

js> typeof Object.defineProperty(Object.defineProperty({}, "p", { value: 7, writable: false, configurable: false, enumerable: true }), "p", { writable: false })
"object"

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