mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-16 00:11:28 +00:00
Add mandelbrot example; Update game-of-life example
This commit is contained in:
6
examples/mandelbrot/index.js
Normal file
6
examples/mandelbrot/index.js
Normal file
@ -0,0 +1,6 @@
|
||||
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
|
||||
});
|
Reference in New Issue
Block a user