diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2021-06-15 15:33:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-15 15:33:13 -0400 |
commit | 984b8bf0c864310bb373a57aad1fea0b002b74fe (patch) | |
tree | 9293d0860edb0e8f687e9802b0f52271520e7003 /extensions/console/02_console.js | |
parent | 0c0058f1181d1fd6590f760a0375ead706043d32 (diff) |
fix(inspector): Deno.inspect should inspect the object the proxy represents rather than the target of the proxy (#10977)
Diffstat (limited to 'extensions/console/02_console.js')
-rw-r--r-- | extensions/console/02_console.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/extensions/console/02_console.js b/extensions/console/02_console.js index a8098423d..8fc6e93b2 100644 --- a/extensions/console/02_console.js +++ b/extensions/console/02_console.js @@ -429,10 +429,8 @@ inspectOptions, ) { const proxyDetails = core.getProxyDetails(value); - if (proxyDetails != null) { - return inspectOptions.showProxy - ? inspectProxy(proxyDetails, level, inspectOptions) - : inspectValue(proxyDetails[0], level, inspectOptions); + if (proxyDetails != null && inspectOptions.showProxy) { + return inspectProxy(proxyDetails, level, inspectOptions); } const green = maybeColor(colors.green, inspectOptions); |