Bug 304569
| Summary: | [JSC] Fix `%TypedArray%.prototype.includes` to Align with ECMA-262 Part2 | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Keita Nonaka <iKonnyaku40> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Local Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Keita Nonaka
This patch fixes `%TypedArray%.prototype.includes`
by adding range check to ensure the `index` is less than the array length,
aligning the behavior with ECMA-262[1].
[1]: https://tc39.es/ecma262/#sec-%typedarray%.prototype.includes
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Keita Nonaka
Pull request: https://github.com/WebKit/WebKit/pull/55770
EWS
Committed 304940@main (4a8356428b41): <https://commits.webkit.org/304940@main>
Reviewed commits have been landed. Closing PR #55770 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/167183441>