summaryrefslogtreecommitdiff
path: root/ext/console/02_console.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/console/02_console.js')
-rw-r--r--ext/console/02_console.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/console/02_console.js b/ext/console/02_console.js
index 1720fe7e2..a9ec52488 100644
--- a/ext/console/02_console.js
+++ b/ext/console/02_console.js
@@ -47,6 +47,7 @@
StringPrototypeToString,
StringPrototypeTrim,
StringPrototypeIncludes,
+ StringPrototypeStartsWith,
TypeError,
NumberParseInt,
RegExp,
@@ -82,6 +83,7 @@
ArrayPrototypeFilter,
ArrayPrototypeFind,
FunctionPrototypeBind,
+ FunctionPrototypeToString,
Map,
MapPrototype,
MapPrototypeHas,
@@ -347,6 +349,11 @@
// use generic 'Function' instead.
cstrName = "Function";
}
+ const stringValue = FunctionPrototypeToString(value);
+ // Might be Class
+ if (StringPrototypeStartsWith(stringValue, "class")) {
+ cstrName = "Class";
+ }
// Our function may have properties, so we want to format those
// as if our function was an object