lib/execjs/external_runtime.rb in execjs-2.9.0 vs lib/execjs/external_runtime.rb in execjs-2.9.1
- old
+ new
@@ -192,11 +192,11 @@
end
elsif RUBY_ENGINE == 'jruby'
require 'shellwords'
def exec_runtime(filename)
- command = "#{Shellwords.join(binary.split(' ') << filename)} 2>&1"
+ command = "#{Shellwords.join(binary.split(' ') << filename)}"
io = IO.popen(command, **@popen_options)
output = io.read
io.close
if $?.success?
@@ -205,10 +205,10 @@
raise exec_runtime_error(output)
end
end
else
def exec_runtime(filename)
- io = IO.popen(binary.split(' ') << filename, **(@popen_options.merge({err: [:child, :out]})))
+ io = IO.popen(binary.split(' ') << filename, **@popen_options)
output = io.read
io.close
if $?.success?
output