aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/FileReaderSync.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webidls/FileReaderSync.webidl')
-rw-r--r--components/script/dom/webidls/FileReaderSync.webidl17
1 files changed, 11 insertions, 6 deletions
diff --git a/components/script/dom/webidls/FileReaderSync.webidl b/components/script/dom/webidls/FileReaderSync.webidl
index cbc18a47921..08248839958 100644
--- a/components/script/dom/webidls/FileReaderSync.webidl
+++ b/components/script/dom/webidls/FileReaderSync.webidl
@@ -1,15 +1,20 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://w3c.github.io/FileAPI/#FileReaderSync
-[Constructor, Exposed=Worker]
+[Exposed=Worker]
interface FileReaderSync {
+ [Throws] constructor();
// Synchronously return strings
- // ArrayBuffer readAsArrayBuffer(Blob blob);
- // DOMString readAsBinaryString(Blob blob);
- // DOMString readAsText(Blob blob, optional DOMString label);
- // DOMString readAsDataURL(Blob blob);
+ [Throws]
+ ArrayBuffer readAsArrayBuffer(Blob blob);
+ [Throws]
+ DOMString readAsBinaryString(Blob blob);
+ [Throws]
+ DOMString readAsText(Blob blob, optional DOMString label);
+ [Throws]
+ DOMString readAsDataURL(Blob blob);
};