diff options
Diffstat (limited to 'ext/web/06_streams.js')
-rw-r--r-- | ext/web/06_streams.js | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/ext/web/06_streams.js b/ext/web/06_streams.js index 49c1eb41c..976f62347 100644 --- a/ext/web/06_streams.js +++ b/ext/web/06_streams.js @@ -8,6 +8,12 @@ import { core, internals, primordials } from "ext:core/mod.js"; const { + isAnyArrayBuffer, + isArrayBuffer, + isSharedArrayBuffer, + isTypedArray, +} = core; +const { op_arraybuffer_was_detached, op_transfer_arraybuffer, op_readable_stream_resource_allocate, @@ -19,20 +25,10 @@ const { op_readable_stream_resource_close, op_readable_stream_resource_await_close, } = core.ensureFastOps(); -// TODO(mmastrac): use readAll const { + // TODO(mmastrac): use readAll op_read_all, } = core.ensureFastOps(true); - -import * as webidl from "ext:deno_webidl/00_webidl.js"; -import { structuredClone } from "ext:deno_web/02_structured_clone.js"; -import { - AbortSignalPrototype, - add, - newSignal, - remove, - signalAbort, -} from "ext:deno_web/03_abort_signal.js"; const { ArrayBuffer, ArrayBufferIsView, @@ -95,12 +91,17 @@ const { WeakMapPrototypeSet, queueMicrotask, } = primordials; -const { - isAnyArrayBuffer, - isArrayBuffer, - isSharedArrayBuffer, - isTypedArray, -} = core; + +import * as webidl from "ext:deno_webidl/00_webidl.js"; +import { structuredClone } from "ext:deno_web/02_structured_clone.js"; +import { + AbortSignalPrototype, + add, + newSignal, + remove, + signalAbort, +} from "ext:deno_web/03_abort_signal.js"; + import { createFilteredInspectProxy } from "ext:deno_console/01_console.js"; import { assert, AssertionError } from "ext:deno_web/00_infra.js"; |