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:
parent
478d99b72f
commit
a9079e02ad
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue