From 353e79c796efc6c6aa328abb4d7cef5e642944af Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Wed, 14 Apr 2021 22:49:16 +0200 Subject: chore: align FormData to spec (#10169) This PR aligns `FormData` to spec. All WPT tests are passing. --- op_crates/file/01_file.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'op_crates/file/01_file.js') 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} */ -- cgit v1.2.3