[Webkit-unassigned] [Bug 151812] New: Numeric properties of an object will not use accessors defined on the object's prototype
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Dec 3 10:57:24 PST 2015
https://bugs.webkit.org/show_bug.cgi?id=151812
Bug ID: 151812
Summary: Numeric properties of an object will not use accessors
defined on the object's prototype
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: dfreedm at google.com
Reproduction:
var proto = Object.create(null);
Object.defineProperty(proto, '0', {
get: function(){console.log('get')},
set: function(){console.log('set')}
});
var o = Object.create(proto);
o[0] = 3;
o[0] === undefined
Expected:
Console prints 'set', 'get', and 'true', as o[0] === undefined.
Actual:
Console prints 'false', as o[0] === 3
Chrome, Firefox, and IE/Edge will show the expected behavior.
--
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/20151203/7fe6aacd/attachment-0001.html>
More information about the webkit-unassigned
mailing list