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:
parent
8e4a70c7e9
commit
77ab2bee9f
2 changed files with 3 additions and 7 deletions
|
@ -1521,7 +1521,7 @@
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
dir = (obj, options = {}) => {
|
dir = (obj = undefined, options = {}) => {
|
||||||
this.#printFunc(
|
this.#printFunc(
|
||||||
inspectArgs([obj], { ...getConsoleInspectOptions(), ...options }) +
|
inspectArgs([obj], { ...getConsoleInspectOptions(), ...options }) +
|
||||||
"\n",
|
"\n",
|
||||||
|
@ -1594,7 +1594,7 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
table = (data, properties) => {
|
table = (data = undefined, properties = undefined) => {
|
||||||
if (properties !== undefined && !Array.isArray(properties)) {
|
if (properties !== undefined && !Array.isArray(properties)) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
"The 'properties' argument must be of type Array. " +
|
"The 'properties' argument must be of type Array. " +
|
||||||
|
|
|
@ -144,11 +144,7 @@
|
||||||
"console-label-conversion.any.html": true,
|
"console-label-conversion.any.html": true,
|
||||||
"console-namespace-object-class-string.any.html": true,
|
"console-namespace-object-class-string.any.html": true,
|
||||||
"console-tests-historical.any.html": true,
|
"console-tests-historical.any.html": true,
|
||||||
"idlharness.any.html": [
|
"idlharness.any.html": true
|
||||||
"console namespace: operation table(optional any, optional sequence<DOMString>)",
|
|
||||||
"console namespace: operation dir(optional any, optional object?)",
|
|
||||||
"console namespace: operation dirxml(any...)"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"dom": {
|
"dom": {
|
||||||
"abort": {
|
"abort": {
|
||||||
|
|
Loading…
Reference in a new issue