mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-21 10:41:42 +00:00
Implement reference counting (#592)
This commit is contained in:
8
lib/i64/index.js
Normal file
8
lib/i64/index.js
Normal file
@ -0,0 +1,8 @@
|
||||
var fs = require("fs");
|
||||
|
||||
// Instantiate the module
|
||||
var mod = new WebAssembly.Module(fs.readFileSync(__dirname + "/build/optimized.wasm"));
|
||||
var ins = new WebAssembly.Instance(mod, { /* no imports */ });
|
||||
|
||||
// Export its exports
|
||||
module.exports = ins.exports;
|
Reference in New Issue
Block a user