1
0
mirror of https://github.com/fluencelabs/assemblyscript synced 2025-05-03 10:52:15 +00:00

9 lines
243 B
JavaScript
Raw Normal View History

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;