mirror of
https://github.com/fluencelabs/assemblyscript-json
synced 2025-03-15 11:10:49 +00:00
9 lines
264 B
JavaScript
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
|
|
});
|