summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/child_process.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/internal/child_process.ts')
-rw-r--r--ext/node/polyfills/internal/child_process.ts33
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,