summaryrefslogtreecommitdiff
path: root/ext/console
diff options
context:
space:
mode:
Diffstat (limited to 'ext/console')
-rw-r--r--ext/console/01_console.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/console/01_console.js b/ext/console/01_console.js
index 1ca23d5a4..d9acc958a 100644
--- a/ext/console/01_console.js
+++ b/ext/console/01_console.js
@@ -1301,7 +1301,9 @@ function getKeys(value, showHidden) {
ArrayPrototypePushApply(keys, ArrayPrototypeFilter(symbols, filter));
}
}
- keys = ArrayPrototypeFilter(keys, (key) => key !== "cause");
+ if (ObjectPrototypeIsPrototypeOf(ErrorPrototype, value)) {
+ keys = ArrayPrototypeFilter(keys, (key) => key !== "cause");
+ }
return keys;
}