You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
They expect to receive 5 streams to be set up, but we only set up the first three. I created a minimal reproduction out of that:
Steps to reproduce
Create file main.mjs with these contents
importcpfrom"node:child_process";importprocessfrom"node:process";if(import.meta.url.endsWith("main.mjs")){constchild=cp.spawn(process.execPath,[import.meta.url],{stdio: ["ignore","pipe","pipe","pipe","pipe"],});console.assert(child.stdio.length===5,`Expected stdio length to equal 5 but got ${child.stdio.length}`);}
Run DENO_FUTURE=1 deno run -A main.mjs
Can also be run in Node for comparison node main.mjs
I'm not aware of any explainer. I don't know how they're supposed to work either. One would probably look at the Node source code to get an answer to that.
Tried the current state of running
playwright
in Deno (see #16899) and ran into an issue regarding the pipes set up fornode:child_process.spawn()
. The launcher code can be found here https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/utils/processLauncher.ts#L133They expect to receive 5 streams to be set up, but we only set up the first three. I created a minimal reproduction out of that:
Steps to reproduce
main.mjs
with these contentsDENO_FUTURE=1 deno run -A main.mjs
Can also be run in Node for comparison
node main.mjs
Version: Deno 1.42.4 (git 5294885 2024-04-24)
The text was updated successfully, but these errors were encountered: