summaryrefslogtreecommitdiff
path: root/runtime/js/40_process.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/40_process.js')
-rw-r--r--runtime/js/40_process.js14
1 files changed, 3 insertions, 11 deletions
diff --git a/runtime/js/40_process.js b/runtime/js/40_process.js
index 545c6c6d6..7a5284404 100644
--- a/runtime/js/40_process.js
+++ b/runtime/js/40_process.js
@@ -11,7 +11,6 @@
ArrayPrototypeMap,
ArrayPrototypeSlice,
TypeError,
- isNaN,
ObjectEntries,
String,
} = window.__bootstrap.primordials;
@@ -95,10 +94,6 @@
}
}
- function isRid(arg) {
- return !isNaN(arg);
- }
-
function run({
cmd,
cwd = undefined,
@@ -120,12 +115,9 @@
env: ObjectEntries(env),
gid,
uid,
- stdin: isRid(stdin) ? "" : stdin,
- stdout: isRid(stdout) ? "" : stdout,
- stderr: isRid(stderr) ? "" : stderr,
- stdinRid: isRid(stdin) ? stdin : 0,
- stdoutRid: isRid(stdout) ? stdout : 0,
- stderrRid: isRid(stderr) ? stderr : 0,
+ stdin,
+ stdout,
+ stderr,
});
return new Process(res);
}