WebAssembly / WebAssembly/threads

Why does WebAssembly.Global.prototype not have accessors for mutability and type?

Open
#87 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
WebAssembly
Stars
767
Forks
54
PR merge metrics
No merged PRs in 30d

Description

The global has an accessor for value, but not for its mutability and type properties. If I read the value and I see '37' I can't infer the type, since that could be any of the three allowed numeric types.

Is this an oversight or a conscious design choice? cc @binji

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

No files, tests, or implementation entry points are named. Start by reviewing the issue discussion and the WebAssembly.Global API design to determine whether mutability and type accessors are intended; done would require an agreed design and corresponding specification or implementation scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
wasm
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.