aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/spawned-child.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-11 12:58:48 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-12-11 12:58:48 -0800
commitb5519af7e7cc9e3812bdeb16d6f21f4a2b9c251d (patch)
tree5d6f710f2b766a5b7346608bda1b8941559dbf4e /test/bun.js/spawned-child.js
parent9d94f148dca8aa683151845960f93521861a5d02 (diff)
downloadbun-b5519af7e7cc9e3812bdeb16d6f21f4a2b9c251d.tar.gz
bun-b5519af7e7cc9e3812bdeb16d6f21f4a2b9c251d.tar.zst
bun-b5519af7e7cc9e3812bdeb16d6f21f4a2b9c251d.zip
cleanup some tests
Diffstat (limited to 'test/bun.js/spawned-child.js')
-rw-r--r--test/bun.js/spawned-child.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/test/bun.js/spawned-child.js b/test/bun.js/spawned-child.js
index 276930503..a90dfade2 100644
--- a/test/bun.js/spawned-child.js
+++ b/test/bun.js/spawned-child.js
@@ -1,25 +1,3 @@
-if (globalThis.Bun) {
- const nodeStream = require("node:stream");
- const nodeFs = require("node:fs");
-
- // TODO: Remove this polyfill once we have integrated polyfill into runtime init
- const {
- stdin: _stdinInit,
- stdout: _stdoutInit,
- stderr: _stderrInit,
- } = require("../../src/bun.js/process-stdio-polyfill.js");
-
- function _require(mod) {
- if (mod === "node:stream") return nodeStream;
- if (mod === "node:fs") return nodeFs;
- throw new Error(`Unknown module: ${mod}`);
- }
-
- process.stdin = _stdinInit({ require: _require });
- process.stdout = _stdoutInit({ require: _require });
- process.stderr = _stderrInit({ require: _require });
-}
-
const TARGET = process.argv[2];
const MODE = process.argv[3];