[Webkit-unassigned] [Bug 181321] New: Object.getOwnPropertyNames includes "arguments" for bound arrow functions
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 4 23:30:58 PST 2018
https://bugs.webkit.org/show_bug.cgi?id=181321
Bug ID: 181321
Summary: Object.getOwnPropertyNames includes "arguments" for
bound arrow functions
Product: WebKit
Version: Safari 11
Hardware: Unspecified
OS: OS X 10.11
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: arunabherath at gmail.com
Object.getOwnPropertyNames((() => {}).bind({}))
Returned array for above method call includes "arguments".
If the values in this array are accessed in the function a type error will be thrown.
Following code will throw.
const boundFn = (() => {}).bind({});
Object.getOwnPropertyNames(boundFn).forEach(p => {boundFn[p]});
In Chrome, firefox "arguments" is not there in the returned array.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180105/71119ab3/attachment.html>
More information about the webkit-unassigned
mailing list