From a9079e02ad4485d66bb914d9c3346210d97001ca Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Fri, 15 Jun 2012 10:06:22 -0500 Subject: [PATCH] connect constructors via inheritance hierarchy. --- lib/v8/conversion/class.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/v8/conversion/class.rb b/lib/v8/conversion/class.rb index ca2077e..e0fb155 100644 --- a/lib/v8/conversion/class.rb +++ b/lib/v8/conversion/class.rb @@ -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