summaryrefslogtreecommitdiff
path: root/runtime/js/06_util.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/06_util.js')
-rw-r--r--runtime/js/06_util.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/js/06_util.js b/runtime/js/06_util.js
index e934c4f0e..c643f758a 100644
--- a/runtime/js/06_util.js
+++ b/runtime/js/06_util.js
@@ -7,6 +7,7 @@
Error,
ObjectPrototypeIsPrototypeOf,
Promise,
+ SafeArrayIterator,
StringPrototypeReplace,
TypeError,
} = window.__bootstrap.primordials;
@@ -26,7 +27,10 @@
if (logDebug) {
// if we destructure `console` off `globalThis` too early, we don't bind to
// the right console, therefore we don't log anything out.
- globalThis.console.log(`DEBUG ${logSource} -`, ...args);
+ globalThis.console.log(
+ `DEBUG ${logSource} -`,
+ ...new SafeArrayIterator(args),
+ );
}
}