Class: V8::Portal::Interceptors::IndexedPropertyQuery

Inherits:
Interceptor show all
Defined in:
lib/v8/portal/interceptors.rb

Instance Method Summary collapse

Methods inherited from Interceptor

#initialize, #intercept

Constructor Details

This class inherits a constructor from V8::Portal::Interceptors::Interceptor

Instance Method Details

#call(property, info) ⇒ Object



125
126
127
128
129
130
131
# File 'lib/v8/portal/interceptors.rb', line 125

def call(property, info)
  attributes = PropertyAttributes.new
  result = intercept(info) do |obj, dontintercept|
    @access.indices(obj, &dontintercept)
  end
  result == C::Empty ? C::Empty : C::Integer::New(attributes.flags)
end