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:
parent
cf9b7e89ac
commit
046ca7686b
1 changed files with 9 additions and 0 deletions
|
|
@ -300,7 +300,16 @@ fail:
|
||||||
%{
|
%{
|
||||||
if (SWIGTYPE_p$jsbaseclass->clientdata && !(static_cast<SWIGV8_ClientData *>(SWIGTYPE_p$jsbaseclass->clientdata)->class_templ.IsEmpty()))
|
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);
|
$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
|
#ifdef SWIGRUNTIME_DEBUG
|
||||||
printf("Inheritance successful $jsmangledname $jsbaseclass\n");
|
printf("Inheritance successful $jsmangledname $jsbaseclass\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue