mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-13 23:11:41 +00:00
Fix and also unify ugc example, see #101
This commit is contained in:
@ -2,7 +2,11 @@ var fs = require("fs");
|
||||
|
||||
// NOTE that this doesn't do anything useful, yet
|
||||
|
||||
var ugc = new WebAssembly.Instance(new WebAssembly.Module(fs.readFileSync(__dirname + "/../ugc.untouched.wasm"))).exports;
|
||||
var ugc = new WebAssembly.Instance(new WebAssembly.Module(fs.readFileSync(__dirname + "/../build/untouched.wasm")), {
|
||||
env: { abort: function(msg, file, line, column) {
|
||||
console.log("abort called at " + line + ":" + column);
|
||||
} }
|
||||
}).exports;
|
||||
|
||||
function mem(memory, offset, count) {
|
||||
if (!offset) offset = 0;
|
||||
|
Reference in New Issue
Block a user