1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 00:59:24 -05:00
denoland-deno/cli/tests/testdata/custom_inspect_url.js
cjihrig b2109a12aa fix(url): properly indent when inspecting URLs (#14867)
This commit updates the custom inspect function for URL objects
to pass the inspect options through so that the context is
propagated and the resulting indentation is correct.

Fixes: https://github.com/denoland/deno/issues/14171
2022-06-15 09:52:28 -04:00

3 lines
172 B
JavaScript

console.log([new URL("https://example.com/path")]);
console.log({ url: new URL("https://example.com/path") });
console.log({ url: [new URL("https://example.com/path")] });