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:
parent
c1b8bd473a
commit
549d8d1da8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue