Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 411d6878200ccc0ac7e964b9d814f9f288f774c7
      
https://github.com/WebKit/WebKit/commit/411d6878200ccc0ac7e964b9d814f9f288f774c7
  Author: Keita Nonaka <[email protected]>
  Date:   2026-01-16 (Fri, 16 Jan 2026)

  Changed paths:
    M JSTests/test262/expectations.yaml
    M Source/JavaScriptCore/runtime/JSGenericTypedArrayViewPrototypeFunctions.h

  Log Message:
  -----------
  [JSC] Fix `%TypedArray%.prototype.subarray` to Calculate `beginByteOffset` 
correctly to Align with ECMA-262
https://bugs.webkit.org/show_bug.cgi?id=305053

Reviewed by Yusuke Suzuki.

Previously, `thisObject->byteOffsetRaw()` was called after
`finish.toIntegerOrInfinity(globalObject)` (`finish` is equivalent to `end` in 
ECMA262 sepc).
Since `finish` is observable, using `thisObject->byteOffsetRaw()` changed its 
value.
This patch fixes `%TypedArray%.prototype.subarray`
to calculate `beginByteOffset` correctly to align with ECMA-262[1].

[1]: https://tc39.es/ecma262/#sec-%typedarray%.prototype.subarray

* JSTests/test262/expectations.yaml:
* Source/JavaScriptCore/runtime/JSGenericTypedArrayViewPrototypeFunctions.h:
(JSC::genericTypedArrayViewProtoFuncSubarray):

Canonical link: https://commits.webkit.org/305697@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to