# File lib/v8/conversion/code.rb, line 18 def initialize(code) @code = code end
# File lib/v8/conversion/code.rb, line 22 def call(arguments) protect do context = V8::Context.current access = context.access args = ::Array.new(arguments.Length()) 0.upto(args.length - 1) do |i| if i < args.length args[i] = context.to_ruby arguments[i] end end this = context.to_ruby arguments.This() context.to_v8 access.methodcall(@code, this, args) end end