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.js26
1 files changed, 12 insertions, 14 deletions
diff --git a/ext/web/08_text_encoding.js b/ext/web/08_text_encoding.js
index 44087b1de..9e0c1f311 100644
--- a/ext/web/08_text_encoding.js
+++ b/ext/web/08_text_encoding.js
@@ -125,24 +125,22 @@
}
if (!options.stream && this.#rid === null) {
- return ops.op_encoding_decode_single(input, {
- label: this.#encoding,
- fatal: this.#fatal,
- ignoreBom: this.#ignoreBOM,
- });
+ return ops.op_encoding_decode_single(
+ input,
+ this.#encoding,
+ this.#fatal,
+ this.#ignoreBOM,
+ );
}
if (this.#rid === null) {
- this.#rid = ops.op_encoding_new_decoder({
- label: this.#encoding,
- fatal: this.#fatal,
- ignoreBom: this.#ignoreBOM,
- });
+ this.#rid = ops.op_encoding_new_decoder(
+ this.#encoding,
+ this.#fatal,
+ this.#ignoreBOM,
+ );
}
- return ops.op_encoding_decode(input, {
- rid: this.#rid,
- stream: options.stream,
- });
+ return ops.op_encoding_decode(input, this.#rid, options.stream);
} finally {
if (!options.stream && this.#rid !== null) {
core.close(this.#rid);