mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-27 05:31:56 +00:00
bin
cli
dist
examples
game-of-life
i64-polyfill
assembly
build
tests
README.md
index.d.ts
index.js
package.json
mandelbrot
n-body
pson
ugc
.gitignore
lib
media
scripts
snap
src
std
tests
.gitattributes
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
NOTICE
README.md
index.d.ts
index.js
package-lock.json
package.json
tsconfig-base.json
tsconfig-docs.json
tslint.json
webpack.config.js
9 lines
255 B
JavaScript
9 lines
255 B
JavaScript
var fs = require("fs");
|
|
|
|
// Instantiate the module
|
|
var mod = new WebAssembly.Module(fs.readFileSync(__dirname + "/build/optimized.wasm"));
|
|
var ins = new WebAssembly.Instance(mod, { /* no imports */ });
|
|
|
|
// Export its exports
|
|
module.exports = ins.exports;
|