Skip to content

Commit

Permalink
Merge pull request #386 from moonbitlang/zhangyu/add-console-log
Browse files Browse the repository at this point in the history
[moonrun] add console.log to js_glue
  • Loading branch information
Yu-zh authored Oct 14, 2024
2 parents 6bcc428 + 5fb1700 commit 4a6c977
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/moonrun/src/template/js_glue.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ const spectest = {
throw new WebAssembly.Exception(tag, [], { traceStack: true })
},
},
console: {
log: (x) => console.log(x),
},
};

try {
Expand Down

0 comments on commit 4a6c977

Please sign in to comment.