mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
fix(ext,runtime): add missing custom inspections (#21219)
This commit is contained in:
parent
a7548afb58
commit
c806fbdabe
31 changed files with 848 additions and 376 deletions
|
@ -483,18 +483,21 @@ class Request {
|
|||
);
|
||||
}
|
||||
|
||||
[SymbolFor("Deno.customInspect")](inspect) {
|
||||
return inspect(createFilteredInspectProxy({
|
||||
object: this,
|
||||
evaluate: ObjectPrototypeIsPrototypeOf(RequestPrototype, this),
|
||||
keys: [
|
||||
"bodyUsed",
|
||||
"headers",
|
||||
"method",
|
||||
"redirect",
|
||||
"url",
|
||||
],
|
||||
}));
|
||||
[SymbolFor("Deno.privateCustomInspect")](inspect, inspectOptions) {
|
||||
return inspect(
|
||||
createFilteredInspectProxy({
|
||||
object: this,
|
||||
evaluate: ObjectPrototypeIsPrototypeOf(RequestPrototype, this),
|
||||
keys: [
|
||||
"bodyUsed",
|
||||
"headers",
|
||||
"method",
|
||||
"redirect",
|
||||
"url",
|
||||
],
|
||||
}),
|
||||
inspectOptions,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue