We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcfc372 commit 3b1af03Copy full SHA for 3b1af03
JetStreamDriver.js
@@ -629,7 +629,9 @@ class ShellScripts extends Scripts {
629
} else
630
globalObject = runString("");
631
632
- globalObject.console = console;
+ // Expose console copy in the realm so we don't accidentally modify
633
+ // the original object.
634
+ globalObject.console = Object.assign({}, console);
635
globalObject.self = globalObject;
636
globalObject.top = {
637
currentResolve,
0 commit comments