summaryrefslogtreecommitdiff
path: root/ext/web/08_text_encoding.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/web/08_text_encoding.js')
-rw-r--r--ext/web/08_text_encoding.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/web/08_text_encoding.js b/ext/web/08_text_encoding.js
index 1b777d91b..9920a81f8 100644
--- a/ext/web/08_text_encoding.js
+++ b/ext/web/08_text_encoding.js
@@ -63,7 +63,7 @@ class TextDecoder {
* @param {string} label
* @param {TextDecoderOptions} options
*/
- constructor(label = "utf-8", options = {}) {
+ constructor(label = "utf-8", options = { __proto__: null }) {
const prefix = "Failed to construct 'TextDecoder'";
label = webidl.converters.DOMString(label, prefix, "Argument 1");
options = webidl.converters.TextDecoderOptions(
@@ -288,7 +288,7 @@ class TextDecoderStream {
* @param {string} label
* @param {TextDecoderOptions} options
*/
- constructor(label = "utf-8", options = {}) {
+ constructor(label = "utf-8", options = { __proto__: null }) {
const prefix = "Failed to construct 'TextDecoderStream'";
label = webidl.converters.DOMString(label, prefix, "Argument 1");
options = webidl.converters.TextDecoderOptions(