diff --git a/lib/rhino/ruby_function.rb b/lib/rhino/ruby_function.rb index 3be1147..49d7f68 100644 --- a/lib/rhino/ruby_function.rb +++ b/lib/rhino/ruby_function.rb @@ -8,7 +8,7 @@ module Rhino end def call(cxt, scope, this, args) - To.javascript @callable.call(*args.map {|a| To.ruby(a)}) + To.javascript @callable.call(*Array(args).map {|a| To.ruby(a)}) end end end \ No newline at end of file