removed Clear before Dispose from newer v8 code, consider the following code:
template <class T>
void Persistent<T>::Dispose() {
if (this->IsEmpty()) return; //Clear will trigger this
V8::DisposeGlobal(reinterpret_cast<internal::Object**>(this->val_));
...
}
This commit is contained in:
parent
89fd7ed9c1
commit
325b5445d6
1 changed files with 1 additions and 1 deletions
|
|
@ -398,8 +398,8 @@ void _wrap_SwigV8PackedData_delete(v8::Isolate *isolate, v8::Persistent< v8::Obj
|
||||||
|
|
||||||
delete cdata;
|
delete cdata;
|
||||||
|
|
||||||
object.Clear();
|
|
||||||
#if (SWIG_V8_VERSION < 0x031900)
|
#if (SWIG_V8_VERSION < 0x031900)
|
||||||
|
object.Clear();
|
||||||
object.Dispose();
|
object.Dispose();
|
||||||
#elif (SWIG_V8_VERSION < 0x032100)
|
#elif (SWIG_V8_VERSION < 0x032100)
|
||||||
object->Dispose(isolate);
|
object->Dispose(isolate);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue