diff options
-rw-r--r-- | ext/web/10_filereader.js | 2 | ||||
-rw-r--r-- | tools/wpt/expectation.json | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/ext/web/10_filereader.js b/ext/web/10_filereader.js index 13fe6af2d..3ca53df7d 100644 --- a/ext/web/10_filereader.js +++ b/ext/web/10_filereader.js @@ -355,7 +355,7 @@ * @param {Blob} blob * @param {string} [encoding] */ - readAsText(blob, encoding) { + readAsText(blob, encoding = undefined) { webidl.assertBranded(this, FileReader); const prefix = "Failed to execute 'readAsBinaryString' on 'FileReader'"; webidl.requiredArguments(arguments.length, 1, { prefix }); diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json index 5d1ffa446..f8ea102c1 100644 --- a/tools/wpt/expectation.json +++ b/tools/wpt/expectation.json @@ -16339,7 +16339,6 @@ "FileList interface: existence and properties of interface prototype object's @@unscopables property", "FileList interface: operation item(unsigned long)", "FileList interface: attribute length", - "FileReader interface: operation readAsText(Blob, optional DOMString)", "FileReader interface: attribute onloadstart", "FileReader interface: attribute onprogress", "FileReader interface: attribute onload", @@ -16852,4 +16851,4 @@ "performance.setResourceTimingBufferSize in workers" ] } -} +}
\ No newline at end of file |