aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/spawned-child.js
diff options
context:
space:
mode:
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];