1
0
Fork 0
mirror of https://github.com/rails/execjs synced 2023-03-27 23:21:20 -04:00

Merge pull request #151 from emptyflask/rbx

Fix #148 - Rubinius' IO.popen arg order
This commit is contained in:
Joshua Peek 2014-06-26 12:40:05 -07:00
commit e1358b406c

View file

@ -142,7 +142,7 @@ module ExecJS
end
def exec_runtime(filename)
io = IO.popen(binary.split(' ') + [filename, {err: [:child, :out]}], @popen_options)
io = IO.popen(binary.split(' ') << filename, @popen_options.merge({err: [:child, :out]}))
output = io.read
io.close