Index: src/JsValue.cpp |
diff --git a/src/JsValue.cpp b/src/JsValue.cpp |
index 55ee092464e65b34fce92c20d5ad69e4ac9664be..3934cc18634eaafdad756c9b61867b4a75bce6d3 100644 |
--- a/src/JsValue.cpp |
+++ b/src/JsValue.cpp |
@@ -284,7 +284,7 @@ JsValue JsValue::Call(std::vector<v8::Handle<v8::Value>>& args, v8::Local<v8::Ob |
const JsContext context(*jsEngine); |
- const v8::TryCatch tryCatch; |
+ const v8::TryCatch tryCatch(jsEngine->GetIsolate()); |
v8::Local<v8::Function> func = v8::Local<v8::Function>::Cast(UnwrapValue()); |
v8::Local<v8::Value> result = func->Call(thisObj, args.size(), |
args.size() ? &args[0] : nullptr); |