diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-12-15 16:20:05 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-15 11:50:05 +0100 |
commit | 81a6504e670d32bdc5e0a8328c328fdf8e208913 (patch) | |
tree | 27a90846e42edd1863e45e9792375d7777f10667 /ext/node/polyfills/02_init.js | |
parent | 62e3f5060ef9cc6a31b3e496dd15548c0abd07e6 (diff) |
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.
Diffstat (limited to 'ext/node/polyfills/02_init.js')
-rw-r--r-- | ext/node/polyfills/02_init.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/node/polyfills/02_init.js b/ext/node/polyfills/02_init.js index e5a0279a5..8d9405c16 100644 --- a/ext/node/polyfills/02_init.js +++ b/ext/node/polyfills/02_init.js @@ -12,7 +12,6 @@ let initialized = false; function initialize( usesLocalNodeModulesDir, argv0, - ipcFd, ) { if (initialized) { throw Error("Node runtime already initialized"); @@ -38,7 +37,7 @@ function initialize( // but it's the only way to get `args` and `version` and this point. internals.__bootstrapNodeProcess(argv0, Deno.args, Deno.version); internals.__initWorkerThreads(); - internals.__setupChildProcessIpcChannel(ipcFd); + internals.__setupChildProcessIpcChannel(); // `Deno[Deno.internal].requireImpl` will be unreachable after this line. delete internals.requireImpl; } |