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

properly convert array contents to ruby as well

This commit is contained in:
Scott Fleckenstein 2010-05-27 07:41:53 +08:00 committed by Charles Lowell
parent c1b8bd473a
commit 549d8d1da8

View file

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