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

  Changed paths:
    M JSTests/wasm/js-api/table64-js-api.js
    M JSTests/wasm/stress/table64-maximum.js
    M Source/JavaScriptCore/wasm/js/JSWebAssemblyTable.cpp
    M Source/JavaScriptCore/wasm/js/JSWebAssemblyTable.h
    M Source/JavaScriptCore/wasm/js/WebAssemblyTablePrototype.cpp

  Log Message:
  -----------
  [JSC] Wasm table64 JS API interfaces
https://bugs.webkit.org/show_bug.cgi?id=321017
rdar://184053551

Reviewed by Cole Carley.

We fix table64 JS API interfaces,

1. Table.length[1] is defined as AddressValue[2], so it should return
   BigInt when table is 64bit. But the current code is not doing so.
   This patch fixes it.
2. Table.grow should throw a range error when the specified delta is
   exceeding[3].

[1]: https://webassembly.github.io/spec/js-api/#tables
[2]: https://webassembly.github.io/spec/js-api/#typedefdef-addressvalue
[3]: https://webassembly.github.io/spec/js-api/#dom-table-grow

* JSTests/wasm/js-api/table64-js-api.js:
(assert.eq.wide.type):
(assert.throws):
(table):
* JSTests/wasm/stress/table64-maximum.js:
(assert.eq.instance.exports.grow):
* Source/JavaScriptCore/wasm/js/JSWebAssemblyTable.cpp:
(JSC::JSWebAssemblyTable::grow):
* Source/JavaScriptCore/wasm/js/JSWebAssemblyTable.h:
* Source/JavaScriptCore/wasm/js/WebAssemblyTablePrototype.cpp:
(JSC::JSC_DEFINE_CUSTOM_GETTER):
(JSC::JSC_DEFINE_HOST_FUNCTION):

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



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

Reply via email to