Wasm generation finished

This commit is contained in:
Jordi Baylina
2020-03-16 20:37:08 +01:00
parent 8f63d18ff4
commit ef899e618b
27 changed files with 2617 additions and 374 deletions

View File

@@ -558,7 +558,11 @@ function execFunctionCall(ctx, ast) {
if (ast.name == "log") {
const v = exec(ctx, ast.params[0]);
const ev = val(ctx, v, ast);
console.log(ev.v.toString());
if (ev.v) {
console.log(ev.v.toString());
} else {
console.log(JSON.stringify(ev));
}
return;
}
if (ast.name == "assert") {