[Webkit-unassigned] [Bug 145358] [JSC] setter / getter is not properly set with numeric properties

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 24 12:29:22 PDT 2015


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

--- Comment #3 from Yusuke Suzuki <utatane.tea at gmail.com> ---
The following should throw an error, but don't.

Object.defineProperty(Object.prototype, 2, {
    set: function () {
        throw new Error("out");
    }
}); 
var obj = {};
obj[2] = 'hello';

-- 
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/20150524/99a1bdde/attachment.html>


More information about the webkit-unassigned mailing list