mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-15 07:51:32 +00:00
Is it a strawberry, see boyanio/wasm-wheel#2
This commit is contained in:
8
examples/i64-polyfill/index.js
Normal file
8
examples/i64-polyfill/index.js
Normal file
@ -0,0 +1,8 @@
|
||||
var fs = require("fs");
|
||||
|
||||
// Instantiate the module
|
||||
var mod = new WebAssembly.Module(fs.readFileSync(__dirname + "/i64.wasm"));
|
||||
var ins = new WebAssembly.Instance(mod, { /* no imports */ });
|
||||
|
||||
// Export its exports
|
||||
module.exports = ins.exports;
|
Reference in New Issue
Block a user