summaryrefslogtreecommitdiff
path: root/extensions/file/01_file.js
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2021-06-07 10:04:10 +0200
committerGitHub <noreply@github.com>2021-06-07 10:04:10 +0200
commit3a4a47799fe395a4ceb253c394724f54192150d2 (patch)
treee1b801543101d28d4352794faa26b2dc65f04670 /extensions/file/01_file.js
parent3b220c64f615a4e18346e8a1c07ad7b1aae9fcc6 (diff)
refactor: clean up webidl protype configuration (#10871)
Diffstat (limited to 'extensions/file/01_file.js')
-rw-r--r--extensions/file/01_file.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/extensions/file/01_file.js b/extensions/file/01_file.js
index c9c66127f..42298c3a1 100644
--- a/extensions/file/01_file.js
+++ b/extensions/file/01_file.js
@@ -291,6 +291,8 @@
}
}
+ webidl.configurePrototype(Blob);
+
webidl.converters["Blob"] = webidl.createInterfaceConverter("Blob", Blob);
webidl.converters["BlobPart"] = (V, opts) => {
// Union for ((ArrayBuffer or ArrayBufferView) or Blob or USVString)
@@ -392,6 +394,8 @@
}
}
+ webidl.configurePrototype(File);
+
webidl.converters["FilePropertyBag"] = webidl.createDictionaryConverter(
"FilePropertyBag",
blobPropertyBagDictionary,