Skip to content

Commit

Permalink
🐛 ii(new URL(url)) doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
astoilkov committed Jan 8, 2025
1 parent e03373d commit af8452d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions playground/playground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,3 +404,8 @@ examples.make(() => {

// ii.defaults.pre = undefined;
});

// 🐛 ii(new URL()) isn't printed at all
examples.make(() => {
ii(new URL("https://example.com"));
});
2 changes: 2 additions & 0 deletions src/inspect/consoleInspect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ function inspect(
).spans,
}),
];
} else {
spans.push(...inspection.spans);
}
} else {
spans.push(...inspection.spans);
Expand Down

0 comments on commit af8452d

Please sign in to comment.