[Webkit-unassigned] [Bug 285254] New: [JSC] `Array.prototype.toReversed` should fill holes with undefined
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Dec 30 20:36:42 PST 2024
https://bugs.webkit.org/show_bug.cgi?id=285254
Bug ID: 285254
Summary: [JSC] `Array.prototype.toReversed` should fill holes
with undefined
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: aosukeke at gmail.com
https://commits.webkit.org/287431@main rewrote `Array.prototype.toReversed`
in C++. According to the spec[1], `toReversed` should fill holes with `undefined`,
but this C++ implementation sometimes leaves those holes intact.
This commit fixes that issue by making the function bail out from the fast path
when the array contains any holes.
[1]: https://tc39.es/ecma262/#sec-array.prototype.toreversed
--
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/20241231/627c799a/attachment.htm>
More information about the webkit-unassigned
mailing list