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

Latest commit

 

History

History
17 lines (12 loc) · 740 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 740 Bytes

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