Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 373 Bytes
import * as fs from 'fs';
const compiled = new WebAssembly.Module(fs.readFileSync(__dirname + "/build/optimized.wasm"));
const imports = {
env: {
abort(_msg: any, _file: any, line: any, column: any) {
console.error("abort called at index.ts:" + line + ":" + column);
}
}
};
export const wasm: any = new WebAssembly.Instance(compiled, imports).exports;
You can’t perform that action at this time.