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

Unified Diff: include/AdblockPlus/JsEngine.h

Issue 9884006: Add file name and line number when reporting exceptions (Closed)
Patch Set: Now with free functions Created March 15, 2013, 3:38 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 | « no previous file | src/JsEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/AdblockPlus/JsEngine.h
===================================================================
--- a/include/AdblockPlus/JsEngine.h
+++ b/include/AdblockPlus/JsEngine.h
@@ -8,17 +8,18 @@
class ErrorCallback;
class FileReader;
namespace AdblockPlus
{
class JsError : public std::runtime_error
{
public:
- JsError(const v8::Handle<v8::Value> exception);
+ JsError(const v8::Handle<v8::Value> exception,
+ const v8::Handle<v8::Message> message);
};
class JsEngine
{
public:
JsEngine(const FileReader* const fileReader,
ErrorCallback* const errorCallback);
void Evaluate(const char* source, const char* filename = NULL);
« 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