Adjust for v8::Persistent API which was deprecated @ 3.19.16

https://groups.google.com/forum/#!topic/v8-users/oBE_DTpRC08
This commit is contained in:
Jason Turner 2013-07-27 12:35:36 -06:00 committed by Oliver Buchtala
commit 046ca7686b

View file

@ -300,7 +300,16 @@ fail:
%{
if (SWIGTYPE_p$jsbaseclass->clientdata && !(static_cast<SWIGV8_ClientData *>(SWIGTYPE_p$jsbaseclass->clientdata)->class_templ.IsEmpty()))
{
#ifdef BUILDING_NODE_EXTENSION
$jsmangledname_class->Inherit(static_cast<SWIGV8_ClientData *>(SWIGTYPE_p$jsbaseclass->clientdata)->class_templ);
#else
$jsmangledname_class->Inherit(
v8::Handle<v8::FunctionTemplate>::New(
v8::Isolate::GetCurrent(),
static_cast<SWIGV8_ClientData *>(SWIGTYPE_p$jsbaseclass->clientdata)->class_templ)
);
#endif
#ifdef SWIGRUNTIME_DEBUG
printf("Inheritance successful $jsmangledname $jsbaseclass\n");
#endif