diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2024-01-11 07:37:25 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-10 15:37:25 -0700 |
commit | 515a34b4de222e35c7ade1b92614d746e73d4c2e (patch) | |
tree | 8284201fc826a33f12597959a8a8be14e0f524bd /ext/web/06_streams.js | |
parent | d4893eb51a01c5a692d8ca74a3b8ff95c5fd1d9f (diff) |
refactor: use `core.ensureFastOps()` (#21888)
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"; |