Skip to content

Commit d41f7ca

Browse files
authored
feat: support console.info and .debug in javascript engine (#18)
1 parent 852729f commit d41f7ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/javascript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async function execCode(code) {
4242
function patchConsole(messages) {
4343
const consoleProxy = new Proxy(console, {
4444
get(target, prop) {
45-
if (prop === "log" || prop === "error" || prop === "warn") {
45+
if (prop === "log" || prop === "error" || prop === "warn" || prop === "info" || prop === "debug") {
4646
return (...args) => {
4747
const message = args.map((obj) => stringify(obj)).join(" ");
4848
messages.push(message);

0 commit comments

Comments
 (0)