Skip to content

Commit

Permalink
fix(ext/web): handle rid=0 in TextDecoder#decode (#14894)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Jun 17, 2022
1 parent fa6274c commit 870d200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/web/08_text_encoding.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 870d200

Please sign in to comment.