0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 17:34:47 -05:00

fix: FileReader.readAsText compat (#11814)

Fixes a WPT test.
This commit is contained in:
Luca Casonato 2021-08-24 13:13:22 +02:00 committed by GitHub
parent 7b882cc05f
commit 50f69a6996
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -355,7 +355,7 @@
* @param {Blob} blob * @param {Blob} blob
* @param {string} [encoding] * @param {string} [encoding]
*/ */
readAsText(blob, encoding) { readAsText(blob, encoding = undefined) {
webidl.assertBranded(this, FileReader); webidl.assertBranded(this, FileReader);
const prefix = "Failed to execute 'readAsBinaryString' on 'FileReader'"; const prefix = "Failed to execute 'readAsBinaryString' on 'FileReader'";
webidl.requiredArguments(arguments.length, 1, { prefix }); webidl.requiredArguments(arguments.length, 1, { prefix });

View file

@ -16339,7 +16339,6 @@
"FileList interface: existence and properties of interface prototype object's @@unscopables property", "FileList interface: existence and properties of interface prototype object's @@unscopables property",
"FileList interface: operation item(unsigned long)", "FileList interface: operation item(unsigned long)",
"FileList interface: attribute length", "FileList interface: attribute length",
"FileReader interface: operation readAsText(Blob, optional DOMString)",
"FileReader interface: attribute onloadstart", "FileReader interface: attribute onloadstart",
"FileReader interface: attribute onprogress", "FileReader interface: attribute onprogress",
"FileReader interface: attribute onload", "FileReader interface: attribute onload",
@ -16852,4 +16851,4 @@
"performance.setResourceTimingBufferSize in workers" "performance.setResourceTimingBufferSize in workers"
] ]
} }
} }