diff options
Diffstat (limited to 'extensions/web/09_file.js')
-rw-r--r-- | extensions/web/09_file.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/extensions/web/09_file.js b/extensions/web/09_file.js index a39b380a6..516e80adf 100644 --- a/extensions/web/09_file.js +++ b/extensions/web/09_file.js @@ -34,6 +34,7 @@ TypeError, Uint8Array, } = window.__bootstrap.primordials; + const consoleInternal = window.__bootstrap.console; // TODO(lucacasonato): this needs to not be hardcoded and instead depend on // host os. @@ -362,7 +363,14 @@ } [SymbolFor("Deno.customInspect")](inspect) { - return `Blob ${inspect({ size: this.size, type: this.#type })}`; + return inspect(consoleInternal.createFilteredInspectProxy({ + object: this, + evaluate: this instanceof Blob, + keys: [ + "size", + "type", + ], + })); } } |