Index: include/AdblockPlus/JsEngine.h |
=================================================================== |
--- a/include/AdblockPlus/JsEngine.h |
+++ b/include/AdblockPlus/JsEngine.h |
@@ -8,17 +8,21 @@ |
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: |
Felix Dahlke
2013/03/15 14:18:15
Mind adding an empty line before private? I know,
|
+ std::string toString(const v8::Handle<v8::Value> exception, |
Felix Dahlke
2013/03/15 14:18:15
We are starting all function/method names with an
Wladimir Palant
2013/03/15 15:27:26
I prefer having this a method for reasons of bette
|
+ 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); |