fixed deprecation warnings for v8-3.21
This commit is contained in:
parent
740da9c733
commit
b49da78b0a
2 changed files with 14 additions and 4 deletions
|
|
@ -141,8 +141,10 @@ void $jswrapper(v8::Isolate *isolate, v8::Persistent< v8::Object > * object, SWI
|
||||||
object.Clear();
|
object.Clear();
|
||||||
#if (SWIG_V8_VERSION < 0x031900)
|
#if (SWIG_V8_VERSION < 0x031900)
|
||||||
object.Dispose();
|
object.Dispose();
|
||||||
#else
|
#elif (SWIG_V8_VERSION < 0x032100)
|
||||||
object->Dispose(isolate);
|
object->Dispose(isolate);
|
||||||
|
#else
|
||||||
|
object->Dispose();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
%}
|
%}
|
||||||
|
|
@ -171,8 +173,10 @@ void $jswrapper(v8::Isolate *isolate, v8::Persistent< v8::Object > * object, SWI
|
||||||
|
|
||||||
#if (SWIG_V8_VERSION < 0x031900)
|
#if (SWIG_V8_VERSION < 0x031900)
|
||||||
object.Dispose();
|
object.Dispose();
|
||||||
#else
|
#elif (SWIG_V8_VERSION < 0x032100)
|
||||||
object->Dispose(isolate);
|
object->Dispose(isolate);
|
||||||
|
#else
|
||||||
|
object->Dispose();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
~SWIGV8_Proxy() {
|
~SWIGV8_Proxy() {
|
||||||
#if (SWIG_V8_VERSION < 0x031900)
|
#if (SWIG_V8_VERSION < 0x031900 || SWIG_V8_VERSION >= 0x032100)
|
||||||
handle.ClearWeak();
|
handle.ClearWeak();
|
||||||
handle.Dispose();
|
handle.Dispose();
|
||||||
#else
|
#else
|
||||||
|
|
@ -238,7 +238,13 @@ void SWIGV8_SetPrivateData(v8::Handle<v8::Object> obj, void* ptr, swig_type_info
|
||||||
} else {
|
} else {
|
||||||
cdata->handle.MakeWeak(v8::Isolate::GetCurrent(), cdata, SWIGV8_Proxy_DefaultDtor);
|
cdata->handle.MakeWeak(v8::Isolate::GetCurrent(), cdata, SWIGV8_Proxy_DefaultDtor);
|
||||||
}
|
}
|
||||||
cdata->handle.MarkIndependent(v8::Isolate::GetCurrent());
|
|
||||||
|
# if (SWIG_V8_VERSION < 0x032100)
|
||||||
|
cdata->handle.MarkIndependent(v8::Isolate::GetCurrent());
|
||||||
|
# else
|
||||||
|
cdata->handle.MarkIndependent();
|
||||||
|
# endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue