fixed deprecation warnings for v8-3.21

This commit is contained in:
Vladimir Menshakov 2013-09-05 19:50:15 +04:00
commit b49da78b0a
2 changed files with 14 additions and 4 deletions

View file

@ -141,8 +141,10 @@ void $jswrapper(v8::Isolate *isolate, v8::Persistent< v8::Object > * object, SWI
object.Clear();
#if (SWIG_V8_VERSION < 0x031900)
object.Dispose();
#else
#elif (SWIG_V8_VERSION < 0x032100)
object->Dispose(isolate);
#else
object->Dispose();
#endif
}
%}
@ -171,8 +173,10 @@ void $jswrapper(v8::Isolate *isolate, v8::Persistent< v8::Object > * object, SWI
#if (SWIG_V8_VERSION < 0x031900)
object.Dispose();
#else
#elif (SWIG_V8_VERSION < 0x032100)
object->Dispose(isolate);
#else
object->Dispose();
#endif
}
%}