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

create a bare function

This commit is contained in:
Charles Lowell 2012-06-14 08:40:33 -05:00
parent fc4d0ce3bf
commit 085e31b20c

View file

@ -1,7 +1,7 @@
class V8::Function < V8::Object
def initialize(native = nil)
super do
native || V8::C::Function::New()
native || V8::C::FunctionTemplate::New().GetFunction()
end
end