mirror of
				https://github.com/rubyjs/therubyracer
				synced 2023-03-27 23:21:42 -04:00 
			
		
		
		
	make the default ruby access the only access for now.
This commit is contained in:
		
							parent
							
								
									6e505d3e9e
								
							
						
					
					
						commit
						a52b227328
					
				
					 1 changed files with 0 additions and 11 deletions
				
			
		| 
						 | 
					@ -1,17 +1,6 @@
 | 
				
			||||||
require 'set'
 | 
					require 'set'
 | 
				
			||||||
module V8
 | 
					module V8
 | 
				
			||||||
  class Access
 | 
					  class Access
 | 
				
			||||||
    def initialize
 | 
					 | 
				
			||||||
      @impl = RubyAccess.new
 | 
					 | 
				
			||||||
    end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    def method_missing(name, *args, &blk)
 | 
					 | 
				
			||||||
      @impl.send(name, *args, &blk)
 | 
					 | 
				
			||||||
    end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  end
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  class RubyAccess
 | 
					 | 
				
			||||||
    def get(obj, name, &dontintercept)
 | 
					    def get(obj, name, &dontintercept)
 | 
				
			||||||
      methods = accessible_methods(obj)
 | 
					      methods = accessible_methods(obj)
 | 
				
			||||||
      if methods.include?(name)
 | 
					      if methods.include?(name)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue