[Webkit-unassigned] [Bug 144252] New: Numeric setter on prototype doesn't get called.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 27 01:19:46 PDT 2015


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

            Bug ID: 144252
           Summary: Numeric setter on prototype doesn't get called.
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: rniwa at webkit.org
                CC: benjamin at webkit.org, fpizlo at apple.com,
                    ggaren at apple.com, joepeck at webkit.org,
                    utatane.tea at gmail.com

var y = {set 2(x) { alert(x) }}
y[2] = 5;
var z = {__proto__: {set 3(x) { alert(x) }}};
z[3] = 7;

Chrome and Firefox both alerts 5 and 7.
Safari only alerts 5.

If you replace '3' with 'foo', Safari also alerts 7 and 7.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150427/a712472e/attachment.html>


More information about the webkit-unassigned mailing list