summaryrefslogtreecommitdiff
path: root/runtime/js/99_main.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r--runtime/js/99_main.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index b25022a08..27dc7111a 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -648,6 +648,7 @@ delete Intl.v8BreakIterator;
ppid,
unstableFlag,
cpuCount,
+ inspectFlag,
userAgent: userAgentInfo,
} = runtimeOptions;
@@ -679,8 +680,10 @@ delete Intl.v8BreakIterator;
ObjectDefineProperties(globalThis, mainRuntimeGlobalProperties);
ObjectSetPrototypeOf(globalThis, Window.prototype);
- const consoleFromDeno = globalThis.console;
- wrapConsole(consoleFromDeno, consoleFromV8);
+ if (inspectFlag) {
+ const consoleFromDeno = globalThis.console;
+ wrapConsole(consoleFromDeno, consoleFromV8);
+ }
eventTarget.setEventTargetData(globalThis);