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

Unified Diff: src/JsError.h

Issue 29810586: Issue 6526 - Use the maybe version of Compile() and Run() (Closed) Base URL: https://hg.adblockplus.org/libadblockplus/
Patch Set: Created June 19, 2018, 5:14 p.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 | « src/JsEngine.cpp ('k') | src/JsError.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/JsError.h
===================================================================
--- a/src/JsError.h
+++ b/src/JsError.h
@@ -29,11 +29,18 @@
public:
JsError(v8::Isolate* isolate, const v8::Local<v8::Value>& exception,
const v8::Local<v8::Message>& message);
static std::string ExceptionToString(v8::Isolate* isolate,
const v8::Local<v8::Value>& exception,
const v8::Local<v8::Message>& message);
};
+
+ class JsValueError : public std::runtime_error
hub 2018/06/19 17:17:04 On second thought, maybe I shoudln't make a new er
+ {
+ public:
+ JsValueError(v8::Isolate* isolate, const char* filename, int line);
+ static std::string ErrorToString(const char* filename, int line);
+ };
}
#endif
« no previous file with comments | « src/JsEngine.cpp ('k') | src/JsError.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld