summaryrefslogtreecommitdiff
path: root/op_crates/file/01_file.js
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2021-04-14 22:49:16 +0200
committerGitHub <noreply@github.com>2021-04-14 22:49:16 +0200
commit353e79c796efc6c6aa328abb4d7cef5e642944af (patch)
tree5ae6d1778c0a1dfa53ac62e409d6da8cdb31285f /op_crates/file/01_file.js
parent5214acd3d9dec56ee159544f0f6bf9834a62c097 (diff)
chore: align FormData to spec (#10169)
This PR aligns `FormData` to spec. All WPT tests are passing.
Diffstat (limited to 'op_crates/file/01_file.js')
-rw-r--r--op_crates/file/01_file.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/op_crates/file/01_file.js b/op_crates/file/01_file.js
index 17762c14a..47b44a08e 100644
--- a/op_crates/file/01_file.js
+++ b/op_crates/file/01_file.js
@@ -139,6 +139,10 @@
const _byteSequence = Symbol("[[ByteSequence]]");
class Blob {
+ get [Symbol.toStringTag]() {
+ return "Blob";
+ }
+
/** @type {string} */
#type;
@@ -286,10 +290,6 @@
}
return bytes.buffer;
}
-
- get [Symbol.toStringTag]() {
- return "Blob";
- }
}
webidl.converters["Blob"] = webidl.createInterfaceConverter("Blob", Blob);
@@ -336,6 +336,10 @@
const _LastModfied = Symbol("[[LastModified]]");
class File extends Blob {
+ get [Symbol.toStringTag]() {
+ return "File";
+ }
+
/** @type {string} */
[_Name];
/** @type {number} */