Fix imported memory fallback and add common stdlib imports to loader

This commit is contained in:
dcodeIO
2018-11-11 10:44:09 +01:00
parent 9ab7384122
commit 6f3209e6c6
4 changed files with 27 additions and 9 deletions

View File

@ -59,3 +59,6 @@ assert.strictEqual(fn(2), 4);
// should be able to create a new function and call it from WASM
ptr = module.newFunction(module.varadd);
assert.strictEqual(module.calladd(ptr, 2, 3), 5);
// should be able to use trace
module.dotrace(42);