WebAssembly / proposals

Tracking WebAssembly proposals

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🛤 JavaScript BigInt to WebAssembly i64 integration

binji opened this issue · comments

This is a tracking issue for a post-MVP feature
It will be updated as the issue progresses.

Topic JavaScript BigInt to WebAssembly i64 integration
Champion Dan Ehrenberg @littledan
Status in progress
Phase proposed spec text available
Linked issues WebAssembly/spec#707
Linked repositories github.com/WebAssembly/JS-BigInt-integration

Details

With this patch, BigInts have support for bidirectionally converting
to 64-bit integer WebAssembly values, which appears as

  • Parameters and return values to exported WebAssembly functions
  • Parameters and return values to host functions
  • Imported and exported globals

BigInts can be read or written from WebAssembly memory using the
BigInt proposal's BigInt64Array or BigUint64Array; no additional
support is needed.

It's implemented in Firefox and it's been baking in Nightly for some time. What's the status of other implementations, tools, spec text? It would be nice to ship this if we can.

It's implemented in Chrome as well. Spec tests were still lacking last time I checked.

Spec text and tests are done in the proposal repo. Not sure if we need anything on the tools side. Given the restrictions to comment to this issue, I've created WebAssembly/JS-BigInt-integration#32 in for further discussion.

CG approved phase 4 in the 2020-05-12 meeting.