From a32d245a4d3c6b18ac373fdaaa467492fdf02038 Mon Sep 17 00:00:00 2001 From: Jon Roberts Date: Wed, 11 Jun 2014 13:06:21 -0500 Subject: [PATCH] Fix #148 - Rubinius' IO.popen arg order --- lib/execjs/external_runtime.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/execjs/external_runtime.rb b/lib/execjs/external_runtime.rb index cf5812b..c7a89a1 100644 --- a/lib/execjs/external_runtime.rb +++ b/lib/execjs/external_runtime.rb @@ -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