Backed out changeset 8fc3326bce7f (bug 1943032) for causing failures at browser_tab_g...
[gecko.git] / dom / canvas / test / webgl-conf / checkout / deqp / temp_externs / w3c_encoding.js
blob947821a90979c6a9ab5e2eb89b26f58f2b9cecfc
1 /*
2 * Copyright 2015 The Closure Compiler Authors
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 /**
18 * @fileoverview Definitions for W3C's Encoding specification
19 * https://encoding.spec.whatwg.org
20 * @externs
23 /**
24 * @constructor
25 * @param {string=} encoding
26 * @param {Object=} options
28 function TextDecoder(encoding, options) {}
30 /** @type {string} **/ TextDecoder.prototype.encoding;
31 /** @type {boolean} **/ TextDecoder.prototype.fatal;
32 /** @type {boolean} **/ TextDecoder.prototype.ignoreBOM;
34 /**
35 * @param {!Uint8Array} input
36 * @param {Object=} options
37 * @return {string}
39 TextDecoder.prototype.decode = function decode(input, options) {};
41 /**
42 * @constructor
43 * @param {string=} encoding
44 * @param {Object=} options
46 function TextEncoder(encoding, options) {}
48 /** @type {string} **/ TextEncoder.prototype.encoding;
50 /**
51 * @param {string} input
52 * @return {!Uint8Array}
54 TextEncoder.prototype.encode = function(input) {};