summaryrefslogtreecommitdiff
path: root/Lib/javascript/v8/javascriptrun.swg
diff options
context:
space:
mode:
authorVladimir Menshakov <menshakov@spb.gs.ru>2013-09-14 16:19:47 +0400
committerVladimir Menshakov <menshakov@spb.gs.ru>2013-09-14 16:19:47 +0400
commit325b5445d67ccf60855aac970ecb6ba913e2b32b (patch)
tree418da5ba7b7e6feb372171a861487660ac876f65 /Lib/javascript/v8/javascriptrun.swg
parent89fd7ed9c1b1c1e0a1a5344018ab9d0a5ce711b0 (diff)
downloadswig-325b5445d67ccf60855aac970ecb6ba913e2b32b.tar.gz
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_)); ... }
Diffstat (limited to 'Lib/javascript/v8/javascriptrun.swg')
-rw-r--r--Lib/javascript/v8/javascriptrun.swg2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/javascript/v8/javascriptrun.swg b/Lib/javascript/v8/javascriptrun.swg
index fbdb75c3a..5be16add5 100644
--- a/Lib/javascript/v8/javascriptrun.swg
+++ b/Lib/javascript/v8/javascriptrun.swg
@@ -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);