Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b1b0566f244ebf72f8cdd87ea3e9de08b768eff8
      
https://github.com/WebKit/WebKit/commit/b1b0566f244ebf72f8cdd87ea3e9de08b768eff8
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-08-07 (Fri, 07 Aug 2026)

  Changed paths:
    A JSTests/wasm/stress/table-copy-aliased-import.js
    M Source/JavaScriptCore/wasm/js/JSWebAssemblyInstance.cpp

  Log Message:
  -----------
  [JSC] Wasm table.copy should not use index to check identity
https://bugs.webkit.org/show_bug.cgi?id=321316
rdar://184355393

Reviewed by Yijia Huang.

You can set the same tables in different table index. So you cannot
check the table identity by table index. We should check the actual
table's pointer.

Test: JSTests/wasm/stress/table-copy-aliased-import.js

* JSTests/wasm/stress/table-copy-aliased-import.js: Added.
(reset):
(contents):
(test):
(string_appeared_here.const.instance.await.instantiate.wat):
* Source/JavaScriptCore/wasm/js/JSWebAssemblyInstance.cpp:
(JSC::JSWebAssemblyInstance::tableCopy):

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



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

Reply via email to