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/node/polyfills/internal/child_process.ts | |
parent | d4893eb51a01c5a692d8ca74a3b8ff95c5fd1d9f (diff) |
refactor: use `core.ensureFastOps()` (#21888)
Diffstat (limited to 'ext/node/polyfills/internal/child_process.ts')
-rw-r--r-- | ext/node/polyfills/internal/child_process.ts | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/ext/node/polyfills/internal/child_process.ts b/ext/node/polyfills/internal/child_process.ts index 4b4eaefcd..cf935cfd4 100644 --- a/ext/node/polyfills/internal/child_process.ts +++ b/ext/node/polyfills/internal/child_process.ts @@ -7,6 +7,22 @@ // deno-lint-ignore-file prefer-primordials import { core, internals } from "ext:core/mod.js"; +const { + op_node_ipc_read, + op_node_ipc_write, +} = core.ensureFastOps(); +import { + ArrayIsArray, + ArrayPrototypeFilter, + ArrayPrototypeJoin, + ArrayPrototypePush, + ArrayPrototypeSlice, + ArrayPrototypeSort, + ArrayPrototypeUnshift, + ObjectHasOwn, + StringPrototypeToUpperCase, +} from "ext:deno_node/internal/primordials.mjs"; + import { assert } from "ext:deno_node/_util/asserts.ts"; import { EventEmitter } from "node:events"; import { os } from "ext:deno_node/internal_binding/constants.ts"; @@ -30,27 +46,10 @@ import { validateObject, validateString, } from "ext:deno_node/internal/validators.mjs"; -import { - ArrayIsArray, - ArrayPrototypeFilter, - ArrayPrototypeJoin, - ArrayPrototypePush, - ArrayPrototypeSlice, - ArrayPrototypeSort, - ArrayPrototypeUnshift, - ObjectHasOwn, - StringPrototypeToUpperCase, -} from "ext:deno_node/internal/primordials.mjs"; import { kEmptyObject } from "ext:deno_node/internal/util.mjs"; import { getValidatedPath } from "ext:deno_node/internal/fs/utils.mjs"; import process from "node:process"; -const core = globalThis.__bootstrap.core; -const { - op_node_ipc_read, - op_node_ipc_write, -} = core.ensureFastOps(); - export function mapValues<T, O>( record: Readonly<Record<string, T>>, transformer: (value: T) => O, |