mdn / mdn/browser-compat-data

Wasm js-types proposal - missing

Open
#30,393 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

browser:multiple data:wasm p3
Dominant language
JSON
Stars
5.8k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
186

Description

What type of issue is this?

Missing compatibility data

What information was incorrect, unhelpful, or incomplete?

Please add compatibility data for these implemented js-types features:

  • WebAssembly.Memory.prototype.type().
  • WebAssembly.Table.prototype.type().
  • WebAssembly.Global.prototype.type().
  • The minimum descriptor option for WebAssembly.Memory().
  • The minimum descriptor option for WebAssembly.Table().
  • WebAssembly.Function, its constructor, and WebAssembly.Function.prototype.type().
  • The type property on descriptors returned by WebAssembly.Module.imports().
  • The type property on descriptors returned by WebAssembly.Module.exports().

All of these have implementations exposed in Firefox Nightly; they are not merely unimplemented proposal text. See Firefox’s implementation and Nightly-only build configuration.

Also include two constructor descriptor values omitted from the earlier list:

  • element: "funcref" for WebAssembly.Table().
  • value: "funcref" for WebAssembly.Global().

The proposal makes "anyfunc" an alias of "funcref". Both spellings are accepted by WebKit’s Table constructor and Global constructor. See the proposal change introducing the alias.

Record constructor options and accepted values separately under the corresponding constructor entries. Passing an existing { value, mutable } descriptor to WebAssembly.Global() does not itself constitute a new overload.

What browsers does this problem apply to, if applicable?

Firefox

What did you expect to see?

Firefox Nightly: The three instance methods, both minimum options, WebAssembly.Function and its method, and both module descriptor extensions are implemented behind ENABLE_WASM_TYPE_REFLECTIONS. Firefox’s build configuration enables this for Nightly by default, not release builds. Implementation, configuration.

Safari/WebKit: There is implementation evidence for the constructor additions and reflection methods, but availability must distinguish release versions from development builds. A WebKit change dated July 17, 2026 moved the previously unconditionally installed type() methods behind useWasmJSTypes, which defaults to false.

Did you test this? If so, how?

Verification consisted of reviewing browser implementation code, build configuration, and implementation-change records.

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
Do you have anything more you want to share?

Investigation done by Codex

MDN URL

No response

MDN metadata

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing WebAssembly compatibility entries and the JavaScript type reflection proposal cited in the issue. Add separate compatibility data for the listed methods, constructor options, accepted values, and module descriptor properties, distinguishing Firefox Nightly and WebKit development support where applicable. Verify that any aliases and omitted constructor values are represented separately as requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, wasm
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.