summaryrefslogtreecommitdiff
path: root/extensions/console/02_console.js
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2021-06-16 15:48:39 +0200
committerGitHub <noreply@github.com>2021-06-16 15:48:39 +0200
commit77ab2bee9fa3dafeb711bccd8822b06a8aa0fae8 (patch)
treed89349fcac22e8f63a1fc811aa40583ccc5d3296 /extensions/console/02_console.js
parent8e4a70c7e9e495ca425bb29cafe1f426ad29c406 (diff)
fix: some more console spec compliance (#10983)
Diffstat (limited to 'extensions/console/02_console.js')
-rw-r--r--extensions/console/02_console.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/console/02_console.js b/extensions/console/02_console.js
index 8fc6e93b2..3391b520b 100644
--- a/extensions/console/02_console.js
+++ b/extensions/console/02_console.js
@@ -1521,7 +1521,7 @@
);
};
- dir = (obj, options = {}) => {
+ dir = (obj = undefined, options = {}) => {
this.#printFunc(
inspectArgs([obj], { ...getConsoleInspectOptions(), ...options }) +
"\n",
@@ -1594,7 +1594,7 @@
}
};
- table = (data, properties) => {
+ table = (data = undefined, properties = undefined) => {
if (properties !== undefined && !Array.isArray(properties)) {
throw new Error(
"The 'properties' argument must be of type Array. " +