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

UnboundMethod should be converted to a Ruby::Function

This commit is contained in:
kares 2012-01-13 16:20:37 +01:00
parent 212f047cfa
commit e0cb01526a

View file

@ -21,8 +21,9 @@ module Rhino
when Array then array_to_javascript(object, scope)
when Hash then hash_to_javascript(object, scope)
when Time then time_to_javascript(object, scope)
when Proc, Method then RubyFunction.wrap(object, scope)
when Class then RubyConstructor.wrap(object, scope)
when Method, UnboundMethod then Ruby::Function.wrap(object, scope)
when Proc then Ruby::Function.wrap(object, scope)
when Class then Ruby::Constructor.wrap(object, scope)
else RubyObject.wrap(object, scope)
end
end