diff options
Diffstat (limited to 'op_crates/file/01_file.js')
-rw-r--r-- | op_crates/file/01_file.js | 12 |
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} */ |