From 81a6504e670d32bdc5e0a8328c328fdf8e208913 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 15 Dec 2023 16:20:05 +0530 Subject: refactor: setup child process pipe in Rust (#21579) Avoid passing the fd into JS and back into Rust. Instead we setup the child's end of the pipe directly using a special Rust op. --- runtime/js/99_main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'runtime/js') diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index 5b4b164a2..0469b38bf 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -440,7 +440,6 @@ function bootstrapMainRuntime(runtimeOptions) { 3: inspectFlag, 5: hasNodeModulesDir, 6: maybeBinaryNpmCommandName, - 7: nodeIpcFd, } = runtimeOptions; performance.setTimeOrigin(DateNow()); @@ -546,7 +545,7 @@ function bootstrapMainRuntime(runtimeOptions) { ObjectDefineProperty(globalThis, "Deno", util.readOnly(finalDenoNs)); if (nodeBootstrap) { - nodeBootstrap(hasNodeModulesDir, maybeBinaryNpmCommandName, nodeIpcFd); + nodeBootstrap(hasNodeModulesDir, maybeBinaryNpmCommandName); } } -- cgit v1.2.3