1
0
mirror of https://github.com/fluencelabs/assemblyscript-json synced 2025-03-31 02:11:04 +00:00
2019-01-05 20:54:13 -08:00

9 lines
264 B
JavaScript

const fs = require("fs");
const compiled = new WebAssembly.Module(fs.readFileSync(__dirname + "/build/optimized.wasm"));
const imports = {
//log:
};
Object.defineProperty(module, "exports", {
get: () => new WebAssembly.Instance(compiled, imports).exports
});