WebAssembly / WebAssembly/spec

[js-api] Allow passing non-bigint values to I64 parameters

Open
#1,541 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
WebAssembly
Stars
3.5k
Forks
539
Avg merge
2d 1h
Merged PRs (30d)
13

Description

This was originally discussed in https://github.com/WebAssembly/JS-BigInt-integration/issues/12.

I would like to propose revisiting but since that repo has been archived I'm restarting the conversation here.

I've worked on getting memory64 working in emscripten for that last year or so I've run into this issue many times now. The most recent and painful instance being https://github.com/emscripten-core/emscripten/issues/17969. Fixing this one is going to take a lot of effort and I think will have runtime overhead as well as add code complexity.

https://github.com/WebAssembly/design/issues/1399 also seems related.

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 reading the linked JS-BigInt integration, Emscripten, and WebAssembly design discussions to understand the proposed I64 argument behavior. Then locate the relevant JavaScript API specification and reference-interpreter tests. Done means the coercion rules are agreed, specified, and covered by the repository's test suite.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, wasm
Domain
api
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.