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

Unified Diff: src/Utils.cpp

Issue 29451722: Issue 4907 - Update v8 to 5.7.278 in libadblockplus (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: fix support of ARCH=ia32 Created June 2, 2017, 7:19 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
« README.md ('K') | « src/Utils.h ('k') | src/WebRequestJsObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/Utils.cpp
diff --git a/src/Utils.cpp b/src/Utils.cpp
index 90db2d007b1ea6341160c14e6b8e94070e529674..22960c9a65106b500fc4b96501be8d803a1f6b72 100644
--- a/src/Utils.cpp
+++ b/src/Utils.cpp
@@ -49,6 +49,10 @@ v8::Local<v8::String> Utils::ToV8String(v8::Isolate* isolate, const std::string&
v8::String::NewStringType::kNormalString, str.length());
}
+void Utils::ThrowExceptionInJS(v8::Isolate* isolate, const std::string& str)
+{
+ isolate->ThrowException(Utils::ToV8String(isolate, str));
+}
#ifdef _WIN32
std::wstring Utils::ToUtf16String(const std::string& str)
« README.md ('K') | « src/Utils.h ('k') | src/WebRequestJsObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld