Skip to content

Commit 5c898ec

Browse files
committed
better handling of logged variables in js repl
1 parent 92f8bb0 commit 5c898ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/server/webui/src/assets/iframe_sandbox.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
const iframeConsole = {
88
_buffer: [],
99
log: function (...args) {
10-
this._buffer.push(args.map(String).join(' '));
10+
this._buffer.push(args.map(JSON.stringify).join(' '));
1111
},
1212
getOutput: function () {
1313
const output = this._buffer.join('\n');

0 commit comments

Comments
 (0)