mirror of
https://github.com/fluencelabs/assemblyscript-dice
synced 2025-04-24 15:42:13 +00:00
7 lines
253 B
JavaScript
7 lines
253 B
JavaScript
const fs = require("fs");
|
|
const compiled = new WebAssembly.Module(fs.readFileSync(__dirname + "/build/optimized.wasm"));
|
|
const imports = {};
|
|
Object.defineProperty(module, "exports", {
|
|
get: () => new WebAssembly.Instance(compiled, imports).exports
|
|
});
|