diff --git a/ext/web/08_text_encoding.js b/ext/web/08_text_encoding.js index 86ac5ab3c0..282618da30 100644 --- a/ext/web/08_text_encoding.js +++ b/ext/web/08_text_encoding.js @@ -143,7 +143,7 @@ stream: options.stream, }); } finally { - if (!options.stream && this.#rid) { + if (!options.stream && this.#rid !== null) { core.close(this.#rid); this.#rid = null; }