diff --git a/lib/rhino/wormhole.rb b/lib/rhino/wormhole.rb index 6f56f8e..4af848c 100644 --- a/lib/rhino/wormhole.rb +++ b/lib/rhino/wormhole.rb @@ -27,7 +27,7 @@ module Rhino end def array(native) - native.length.times.map {|i| native.get(i,native)} + native.length.times.map {|i| ruby(native.get(i,native))} end module_function :ruby, :javascript, :array