1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00

fix: some more console spec compliance (#10983)

This commit is contained in:
Luca Casonato 2021-06-16 15:48:39 +02:00 committed by GitHub
parent 8e4a70c7e9
commit 77ab2bee9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

View file

@ -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. " +

View file

@ -144,11 +144,7 @@
"console-label-conversion.any.html": true,
"console-namespace-object-class-string.any.html": true,
"console-tests-historical.any.html": true,
"idlharness.any.html": [
"console namespace: operation table(optional any, optional sequence<DOMString>)",
"console namespace: operation dir(optional any, optional object?)",
"console namespace: operation dirxml(any...)"
]
"idlharness.any.html": true
},
"dom": {
"abort": {