Skip to content

Commit af8452d

Browse files
committed
🐛 ii(new URL(url)) doesn't work
1 parent e03373d commit af8452d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

playground/playground.ts

+5
Original file line numberDiff line numberDiff line change
@@ -404,3 +404,8 @@ examples.make(() => {
404404

405405
// ii.defaults.pre = undefined;
406406
});
407+
408+
// 🐛 ii(new URL()) isn't printed at all
409+
examples.make(() => {
410+
ii(new URL("https://example.com"));
411+
});

src/inspect/consoleInspect.ts

+2
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ function inspect(
118118
).spans,
119119
}),
120120
];
121+
} else {
122+
spans.push(...inspection.spans);
121123
}
122124
} else {
123125
spans.push(...inspection.spans);

0 commit comments

Comments
 (0)