summaryrefslogtreecommitdiff
path: root/ext/web/09_file.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/web/09_file.js')
-rw-r--r--ext/web/09_file.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/web/09_file.js b/ext/web/09_file.js
index 94981a2f4..fd0451438 100644
--- a/ext/web/09_file.js
+++ b/ext/web/09_file.js
@@ -535,6 +535,18 @@ class File extends Blob {
webidl.assertBranded(this, FilePrototype);
return this[_LastModified];
}
+
+ [SymbolFor("Deno.customInspect")](inspect) {
+ return inspect(createFilteredInspectProxy({
+ object: this,
+ evaluate: ObjectPrototypeIsPrototypeOf(FilePrototype, this),
+ keys: [
+ "name",
+ "size",
+ "type",
+ ],
+ }));
+ }
}
webidl.configurePrototype(File);