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

connect constructors via inheritance hierarchy.

This commit is contained in:
Charles Lowell 2012-06-15 10:06:22 -05:00
parent 478d99b72f
commit a9079e02ad

View file

@ -14,6 +14,9 @@ class V8::Conversion
prototype = template.InstanceTemplate()
prototype.SetNamedPropertyHandler(Get, Set)
prototype.SetIndexedPropertyHandler(IGet, ISet)
if self != ::Object && superclass != ::Object && superclass != ::Class
template.Inherit(superclass.to_v8_template)
end
template
end
end