From 963323865f9d41c937eb90fd8987733465e7ee7a Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Fri, 22 Apr 2011 11:10:33 -0500 Subject: [PATCH] get rid of the callable constructors list. --- lib/v8/portal.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/v8/portal.rb b/lib/v8/portal.rb index 56070d1..39af66d 100644 --- a/lib/v8/portal.rb +++ b/lib/v8/portal.rb @@ -133,14 +133,7 @@ module V8 when ::Time C::Date::New(value.to_f * 1000) when ::Class - @embedded_constructors[value].GetFunction().tap do |f| - f.SetHiddenValue(C::String::NewSymbol("TheRubyRacer::RubyObject"), C::External::New(value)) - #set the function's prototype object to the object that will have the named property handlers - prototype = rubytemplate.NewInstance() - #set *that* object's prototype to an empty function so that it will look and behave like a function. - prototype.SetPrototype(C::FunctionTemplate::New() {}.GetFunction()) - f.SetPrototype(prototype) - end + callable_js_constructor_for(value) when nil,Numeric,TrueClass,FalseClass, C::Value value else