Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e8fa381db9af420a8bbf832618b481925f58b8b0
https://github.com/WebKit/WebKit/commit/e8fa381db9af420a8bbf832618b481925f58b8b0
Author: Keita Nonaka <[email protected]>
Date: 2025-12-15 (Mon, 15 Dec 2025)
Changed paths:
A JSTests/stress/typedarray-resize-includes.js
M JSTests/test262/expectations.yaml
M Source/JavaScriptCore/runtime/JSGenericTypedArrayViewPrototypeFunctions.h
Log Message:
-----------
[JSC] Align `%TypedArray%.prototype.includes` with ECMA-262
https://bugs.webkit.org/show_bug.cgi?id=304149
Reviewed by Yusuke Suzuki and Sosuke Suzuki.
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
Test: JSTests/stress/typedarray-resize-includes.js
* JSTests/stress/typedarray-resize-includes.js: Added.
(shouldBe):
(throw.new.Error):
* JSTests/test262/expectations.yaml:
* Source/JavaScriptCore/runtime/JSGenericTypedArrayViewPrototypeFunctions.h:
(JSC::genericTypedArrayViewProtoFuncIncludes):
Canonical link: https://commits.webkit.org/304485@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications