Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

WebAssembly/JS-BigInt-integration

Repository files navigation

WebAssembly BigInt<->i64 conversion in JS API

This proposal has been merged into the main specification.

With the changes in this repository, 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.

Design issue

Rendered spec