mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-05-02 10:22:15 +00:00
16 lines
451 B
Markdown
16 lines
451 B
Markdown
i64 polyfill
|
|
============
|
|
|
|
An [AssemblyScript](http://assemblyscript.org) example. Exposes i64 operations to JS using 32-bit integers (low and high bits).
|
|
|
|
Instructions
|
|
------------
|
|
|
|
To build [assembly/i64.ts](./assembly/i64.ts) to an untouched and an optimized `.wasm` including their respective `.wast` representations, run:
|
|
|
|
```
|
|
$> npm run build
|
|
```
|
|
|
|
Afterwards, `require` the node module as usual (CommonJS entry point is [index.js](./index.js)).
|