From c806fbdabe144c865612bbbc9ef596c9611c8310 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Sun, 19 Nov 2023 17:13:38 +0900 Subject: fix(ext,runtime): add missing custom inspections (#21219) --- ext/fetch/23_request.js | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'ext/fetch/23_request.js') diff --git a/ext/fetch/23_request.js b/ext/fetch/23_request.js index bbaf886a6..b78ed07be 100644 --- a/ext/fetch/23_request.js +++ b/ext/fetch/23_request.js @@ -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, + ); } } -- cgit v1.2.3