if (STDIO_PIPE.equals(type)) {
// Create a new handle that writes to the output stream.
if (log.isDebugEnabled()) {
log.debug("Setting fd {} to output stream {}", arg, out);
}
JavaOutputStreamHandle streamHandle = new JavaOutputStreamHandle(out);
Scriptable handle = createStreamHandle(cx, streamHandle);
opts.put("handle", opts, handle);
} else if (STDIO_IGNORE.equals(type)) {
// Close the stream and do nothing