summaryrefslogtreecommitdiff
path: root/cli/js/web/console.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/web/console.ts')
-rw-r--r--cli/js/web/console.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/cli/js/web/console.ts b/cli/js/web/console.ts
index 7a3f9241e..69c9d3137 100644
--- a/cli/js/web/console.ts
+++ b/cli/js/web/console.ts
@@ -223,7 +223,7 @@ function groupEntries<T>(
let order = "padStart";
if (value !== undefined) {
for (let i = 0; i < entries.length; i++) {
- //@ts-ignore
+ //@ts-expect-error
if (typeof value[i] !== "number" && typeof value[i] !== "bigint") {
order = "padEnd";
break;
@@ -239,7 +239,7 @@ function groupEntries<T>(
for (; j < max - 1; j++) {
// In future, colors should be taken here into the account
const padding = maxLineLength[j - i];
- //@ts-ignore
+ //@ts-expect-error
str += `${entries[j]}, `[order](padding, " ");
}
if (order === "padStart") {
@@ -412,7 +412,7 @@ function createMapString(
},
group: false,
};
- //@ts-ignore
+ //@ts-expect-error
return createIterableString(value, ctx, level, maxLevel, printConfig);
}
@@ -494,7 +494,7 @@ function createRawObjectString(
let baseString = "";
let shouldShowDisplayName = false;
- // @ts-ignore
+ // @ts-expect-error
let displayName = value[Symbol.toStringTag];
if (!displayName) {
displayName = getClassInstanceName(value);
@@ -515,7 +515,7 @@ function createRawObjectString(
for (const key of symbolKeys) {
entries.push(
`${key.toString()}: ${stringifyWithQuotes(
- // @ts-ignore
+ // @ts-expect-error
value[key],
ctx,
level + 1,
@@ -949,7 +949,7 @@ export class Console {
name: "Trace",
message,
};
- // @ts-ignore
+ // @ts-expect-error
Error.captureStackTrace(err, this.trace);
this.error((err as Error).stack);
};