# Intent to ship: "JS BigInt to I64 integration" WebAssembly proposal

This feature allows I64 values in WebAssembly to be exported to JavaScript
as a BigInt value, or imported from JS from a BigInt.

With this proposal implemented, all four value types in the WebAssembly MVP
can be passed through the Wasm<->JS boundary, allowing for easier
interoperation between the languages.

## Tracking bugs

Implementation: https://bugzilla.mozilla.org/show_bug.cgi?id=1608770
Shipping: https://bugzilla.mozilla.org/show_bug.cgi?id=1631702

## Standard

https://github.com/WebAssembly/JS-BigInt-integration

https://webassembly.github.io/JS-BigInt-integration/js-api/index.html

The proposal very recently entered "phase 4" in the WebAssembly
standardization process:

  https://github.com/WebAssembly/meetings/blob/master/2020/CG-05-12.md

## Platform coverage

All

## Devtools support

N/A. BigInts are displayed fine in the debugger.

## Restricted to secure contexts

No.  (Not a worry as no additional capabilities granted.)

## Is this feature enabled by default in sandboxed iframes?

Yes.  (Not a worry as no additional capabilities granted.)

## Estimated or target release

78 (soft freeze 28 May, train leaving 1 June)

## Support in other browser / JS engines

Chrome / V8 implements the proposal.  Staged in September 2019, not
shipped yet: https://bugs.chromium.org/p/v8/issues/detail?id=7741

Support in emscripten: https://github.com/emscripten-core/emscripten/pull/10860

## Upstream test coverage

There are good tests in the proposal repository, which are not merged upstream
into WPT yet but likely will be in the near future:

  https://github.com/WebAssembly/JS-BigInt-integration/tree/master/test

## Where to send your bugs

Asumu Takikawa (:asumu).
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to