Class: V8::Portal::FunctionAdapter::BoundCall

Inherits:
Call
  • Object
show all
Defined in:
lib/v8/portal/function.rb

Instance Method Summary collapse

Methods inherited from Call

#initialize

Constructor Details

This class inherits a constructor from V8::Portal::FunctionAdapter::Call

Instance Method Details

#call(arguments) ⇒ Object



38
39
40
41
42
43
44
45
# File 'lib/v8/portal/function.rb', line 38

def call(arguments)
  proc = arguments.Data()
  rbargs = []
  for i in 0..arguments.Length() - 1
    rbargs << @portal.rb(arguments[i])
  end
  @portal.caller.invoke(proc, *rbargs)
end