[Webkit-unassigned] [Bug 72581] New: Static setters in prototype chains are not called.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 16 23:46:50 PST 2011


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

           Summary: Static setters in prototype chains are not called.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: barraclough at apple.com


Object [[Put]] requires setters in the prototype chain to be called (see 8.12.5 steps 4/5). We will do so if the getter/setter is defined using a JS GetterSetter, however we won't if the property is defined in a static table.  Setters in the static table are only invoked if the object containing the setter is the base of the access, not in the prototype chain.  E.g.:

var o = Object.create(RegExp); // o.__proto__ === RegExp.

RegExp.input = "foo"; // setRegExpConstructorInput is called.
o.input = "bar"; // setRegExpConstructorInput should be called, is not.

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