Skip to content

Commit

Permalink
fix(ext/web): FileReader error messages (denoland#12218)
Browse files Browse the repository at this point in the history
  • Loading branch information
rotu committed Sep 25, 2021
1 parent 1380def commit 09f2cdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/web/10_filereader.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@
/** @param {Blob} blob */
readAsDataURL(blob) {
webidl.assertBranded(this, FileReader);
const prefix = "Failed to execute 'readAsBinaryString' on 'FileReader'";
const prefix = "Failed to execute 'readAsDataURL' on 'FileReader'";
webidl.requiredArguments(arguments.length, 1, { prefix });
// alias for readAsArrayBuffer
this.#readOperation(blob, { kind: "DataUrl" });
Expand All @@ -379,7 +379,7 @@
*/
readAsText(blob, encoding = undefined) {
webidl.assertBranded(this, FileReader);
const prefix = "Failed to execute 'readAsBinaryString' on 'FileReader'";
const prefix = "Failed to execute 'readAsText' on 'FileReader'";
webidl.requiredArguments(arguments.length, 1, { prefix });
if (encoding !== undefined) {
encoding = webidl.converters["DOMString"](encoding, {
Expand Down

0 comments on commit 09f2cdb

Please sign in to comment.