1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/lib/v8/function.rb

10 lines
No EOL
190 B
Ruby

module V8
class Function < V8::Object
def call(thisObject, *args)
this = To.v8(thisObject)
To.ruby(@native.Call(this, *args.map {|a| To.v8(a)}))
end
end
end