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:
Vladimir Menshakov 2013-09-14 16:19:47 +04:00
commit 325b5445d6

View file

@ -398,8 +398,8 @@ void _wrap_SwigV8PackedData_delete(v8::Isolate *isolate, v8::Persistent< v8::Obj
delete cdata;
object.Clear();
#if (SWIG_V8_VERSION < 0x031900)
object.Clear();
object.Dispose();
#elif (SWIG_V8_VERSION < 0x032100)
object->Dispose(isolate);