diff options
Diffstat (limited to 'test/bun.js/spawned-child.js')
-rw-r--r-- | test/bun.js/spawned-child.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/test/bun.js/spawned-child.js b/test/bun.js/spawned-child.js deleted file mode 100644 index 263c566f9..000000000 --- a/test/bun.js/spawned-child.js +++ /dev/null @@ -1,29 +0,0 @@ -const TARGET = process.argv[2]; -const MODE = process.argv[3]; - -if (TARGET === "STDIN") { - let data = ""; - process.stdin.setEncoding("utf8"); - if (MODE === "READABLE") { - process.stdin.on("readable", () => { - let chunk; - while ((chunk = process.stdin.read()) !== null) { - data += chunk; - } - }); - } else { - process.stdin.on("data", chunk => { - data += chunk; - }); - } - process.stdin.on("end", () => { - process.stdout.write("data: "); - process.stdout.write(data); - }); -} else if (TARGET === "STDOUT") { - process.stdout.write("stdout_test"); -} else if (TARGET === "ERROR") { - console.log("oops"); -} else { - // nothing -} |