Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 240fe1fc636cb10b9dc723bcc9f9b273b6038b70
      
https://github.com/WebKit/WebKit/commit/240fe1fc636cb10b9dc723bcc9f9b273b6038b70
  Author: Sergey Rubanov <[email protected]>
  Date:   2026-09-30 (Wed, 30 Sep 2026)

  Changed paths:
    M JSTests/stress/typedarray-constructor-proxy-array-like.js
    M Source/JavaScriptCore/runtime/JSGenericTypedArrayViewConstructorInlines.h

  Log Message:
  -----------
  [JSC] Don't use a module namespace length binding as a TypedArray length

https://bugs.webkit.org/show_bug.cgi?id=325491

Reviewed by Yusuke Suzuki.

VMInquiry taints both a Proxy and a module namespace. The Proxy fix
then read "length" for every tainted object, so a namespace export
named length became the typed array's length.

Read "length" when that inquiry hit a Proxy, including one on the
prototype chain. A module namespace keeps the inquiry result, which
does not read the length binding.

* JSTests/stress/typedarray-constructor-proxy-array-like.js:
* Source/JavaScriptCore/runtime/JSGenericTypedArrayViewConstructorInlines.h:
(JSC::constructGenericTypedArrayViewWithArguments):

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



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

Reply via email to