mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
10 lines
No EOL
190 B
Ruby
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 |