diff options
Diffstat (limited to 'components/script/dom/webidls/TextEncoder.webidl')
-rw-r--r-- | components/script/dom/webidls/TextEncoder.webidl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/webidls/TextEncoder.webidl b/components/script/dom/webidls/TextEncoder.webidl index eef46f68edf..77e5132ff05 100644 --- a/components/script/dom/webidls/TextEncoder.webidl +++ b/components/script/dom/webidls/TextEncoder.webidl @@ -1,10 +1,11 @@ /* 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://encoding.spec.whatwg.org/#interface-textencoder */ -[Constructor, Exposed=(Window,Worker)] +[Exposed=(Window,Worker)] interface TextEncoder { + [Throws] constructor(); readonly attribute DOMString encoding; [NewObject] Uint8Array encode(optional USVString input = ""); |