Skip to content

Commit 8e71f45

Browse files
author
Ives van Hoorne
committed
Add support for Function in console
1 parent b2b31e2 commit 8e71f45

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sandbox/console/massage-json.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ function mapConsoleResult(arg: any) {
66
return arg.stack;
77
}
88

9+
if (typeof arg === 'function') {
10+
return arg.toString();
11+
}
12+
913
return arg;
1014
}
1115

0 commit comments

Comments
 (0)