1
0
Fork 0
mirror of https://github.com/rubyjs/therubyrhino synced 2023-03-27 23:21:34 -04:00

Fixes broken 'Rhino::To javascript translation converts procs and methods into native functions' spec under jruby --1.9

This commit is contained in:
Alex Wolfe 2011-09-29 15:58:42 -05:00
parent 7073412013
commit fa4d8af47d

View file

@ -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