mirror of
https://github.com/denoland/deno.git
synced 2024-12-25 00:29:09 -05:00
fix(ext/web): handle rid=0 in TextDecoder#decode (#14894)
This commit is contained in:
parent
fa6274cffe
commit
870d200716
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@
|
||||||
stream: options.stream,
|
stream: options.stream,
|
||||||
});
|
});
|
||||||
} finally {
|
} finally {
|
||||||
if (!options.stream && this.#rid) {
|
if (!options.stream && this.#rid !== null) {
|
||||||
core.close(this.#rid);
|
core.close(this.#rid);
|
||||||
this.#rid = null;
|
this.#rid = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue