mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 18:38:33 +00:00
parent
ad8d0c90d1
commit
03edd48edd
21 changed files with 688 additions and 308 deletions
|
@ -7,6 +7,10 @@
|
|||
|
||||
const core = globalThis.Deno.core;
|
||||
const ops = core.ops;
|
||||
const primordials = globalThis.__bootstrap.primordials;
|
||||
const {
|
||||
TypedArrayPrototypeGetByteLength,
|
||||
} = primordials;
|
||||
import * as webidl from "ext:deno_webidl/00_webidl.js";
|
||||
import { TransformStream } from "ext:deno_web/06_streams.js";
|
||||
|
||||
|
@ -113,7 +117,7 @@ class DecompressionStream {
|
|||
}
|
||||
|
||||
function maybeEnqueue(controller, output) {
|
||||
if (output && output.byteLength > 0) {
|
||||
if (output && TypedArrayPrototypeGetByteLength(output) > 0) {
|
||||
controller.enqueue(output);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue