mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
b2109a12aa
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
47 lines
851 B
Text
47 lines
851 B
Text
[
|
|
URL {
|
|
href: "https://example.com/path",
|
|
origin: "https://example.com",
|
|
protocol: "https:",
|
|
username: "",
|
|
password: "",
|
|
host: "example.com",
|
|
hostname: "example.com",
|
|
port: "",
|
|
pathname: "/path",
|
|
hash: "",
|
|
search: ""
|
|
}
|
|
]
|
|
{
|
|
url: URL {
|
|
href: "https://example.com/path",
|
|
origin: "https://example.com",
|
|
protocol: "https:",
|
|
username: "",
|
|
password: "",
|
|
host: "example.com",
|
|
hostname: "example.com",
|
|
port: "",
|
|
pathname: "/path",
|
|
hash: "",
|
|
search: ""
|
|
}
|
|
}
|
|
{
|
|
url: [
|
|
URL {
|
|
href: "https://example.com/path",
|
|
origin: "https://example.com",
|
|
protocol: "https:",
|
|
username: "",
|
|
password: "",
|
|
host: "example.com",
|
|
hostname: "example.com",
|
|
port: "",
|
|
pathname: "/path",
|
|
hash: "",
|
|
search: ""
|
|
}
|
|
]
|
|
}
|