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