Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 76340acb4d382e75459d2814e31cb803eff4f4de
      
https://github.com/WebKit/WebKit/commit/76340acb4d382e75459d2814e31cb803eff4f4de
  Author: Sergey Rubanov <[email protected]>
  Date:   2026-07-16 (Thu, 16 Jul 2026)

  Changed paths:
    M JSTests/wasm/gc/js-api.js
    M JSTests/wasm/js-api/global.js
    M JSTests/wasm/js-api/memory64-js-api.js
    M JSTests/wasm/js-api/table.js
    M JSTests/wasm/js-api/table64-js-api.js
    M JSTests/wasm/js-api/test_memory.js
    M JSTests/wasm/stress/create-tag-from.js
    M JSTests/wasm/v8/exceptions-type-reflection.js
    M Source/JavaScriptCore/wasm/js/WebAssemblyGlobalPrototype.cpp
    M Source/JavaScriptCore/wasm/js/WebAssemblyMemoryPrototype.cpp
    M Source/JavaScriptCore/wasm/js/WebAssemblyTablePrototype.cpp
    M Source/JavaScriptCore/wasm/js/WebAssemblyTablePrototype.h
    M Source/JavaScriptCore/wasm/js/WebAssemblyTagPrototype.cpp
    M Source/JavaScriptCore/wasm/js/WebAssemblyTagPrototype.h
    M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml

  Log Message:
  -----------
  [JSC] Gate WebAssembly type() methods behind useWasmJSTypes
https://bugs.webkit.org/show_bug.cgi?id=317707

Reviewed by Keith Miller.

Memory.prototype.type and the matching methods on Table, Global, and Tag
come from the js-types proposal, not the core WebAssembly JS API. They
were always installed before. Install them only when
Options::useWasmJSTypes is enabled, which defaults to false.

Declare the option in UnifiedWebPreferences.yaml (jscOptionName
useWasmJSTypes). Layout tests enable it via status: testable; JSTests
use requireOptions("--useWasmJSTypes=true").

* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/JavaScriptCore/wasm/js/WebAssemblyMemoryPrototype.cpp:
* Source/JavaScriptCore/wasm/js/WebAssemblyTablePrototype.cpp:
* Source/JavaScriptCore/wasm/js/WebAssemblyTablePrototype.h:
* Source/JavaScriptCore/wasm/js/WebAssemblyGlobalPrototype.cpp:
* Source/JavaScriptCore/wasm/js/WebAssemblyTagPrototype.cpp:
* Source/JavaScriptCore/wasm/js/WebAssemblyTagPrototype.h:
* JSTests/wasm/js-api/test_memory.js:
* JSTests/wasm/js-api/table.js:
* JSTests/wasm/js-api/global.js:
* JSTests/wasm/js-api/memory64-js-api.js:
* JSTests/wasm/js-api/table64-js-api.js:
* JSTests/wasm/gc/js-api.js:
* JSTests/wasm/stress/create-tag-from.js:
* JSTests/wasm/v8/exceptions-type-reflection.js:

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



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

Reply via email to