1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-24 08:09:08 -05:00

fix(ext/web): handle rid=0 in TextDecoder#decode (#14894)

This commit is contained in:
Luca Casonato 2022-06-17 12:49:57 +02:00 committed by GitHub
parent fa6274cffe
commit 870d200716
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
} }