summaryrefslogtreecommitdiff
path: root/ext/console
diff options
context:
space:
mode:
Diffstat (limited to 'ext/console')
-rw-r--r--ext/console/01_console.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/console/01_console.js b/ext/console/01_console.js
index a766bb641..67c75f74d 100644
--- a/ext/console/01_console.js
+++ b/ext/console/01_console.js
@@ -137,14 +137,14 @@ const {
isNaN,
} = primordials;
-let noColor = false;
+let noColor = () => false;
-function setNoColor(value) {
- noColor = value;
+function setNoColorFn(fn) {
+ noColor = fn;
}
function getNoColor() {
- return noColor;
+ return noColor();
}
function assert(cond, msg = "Assertion failed.") {
@@ -3646,7 +3646,7 @@ export {
inspect,
inspectArgs,
quoteString,
- setNoColor,
+ setNoColorFn,
styles,
wrapConsole,
};