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:
		
							parent
							
								
									212f047cfa
								
							
						
					
					
						commit
						e0cb01526a
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue