Index: include/AdblockPlus/JsEngine.h |
=================================================================== |
--- a/include/AdblockPlus/JsEngine.h |
+++ b/include/AdblockPlus/JsEngine.h |
@@ -8,17 +8,22 @@ |
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); |
+ |
+ private: |
+ static std::string ExceptionToString(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); |