Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/FileSystemJsObject.cpp

Issue 29734562: Issue 6526 - update usage of V8 API (Closed) Base URL: https://github.com/adblockplus/libadblockplus@18cc8b26874862bdc75c1cce28bd7b490066c659
Patch Set: Created March 27, 2018, 11:37 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/JsEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/FileSystemJsObject.cpp
diff --git a/src/FileSystemJsObject.cpp b/src/FileSystemJsObject.cpp
index 4225b2e6217e4108116dfee5aa3c6043883b6a81..f62e00429eea3dc98cf5d028592ca733bacc4faf 100644
--- a/src/FileSystemJsObject.cpp
+++ b/src/FileSystemJsObject.cpp
@@ -179,7 +179,7 @@ namespace
if (!globalContext->IsObject())
throw std::runtime_error("`this` pointer has to be an object");
- const v8::TryCatch tryCatch;
+ const v8::TryCatch tryCatch(jsEngine->GetIsolate());
const auto contentEnd = content.cend();
auto stringBegin = SkipEndOfLine(content.begin(), contentEnd);
do
« no previous file with comments | « no previous file | src/JsEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld