Index: include/AdblockPlus/JsEngine.h |
=================================================================== |
--- a/include/AdblockPlus/JsEngine.h |
+++ b/include/AdblockPlus/JsEngine.h |
@@ -16,17 +16,19 @@ namespace AdblockPlus |
JsError(const v8::Handle<v8::Value> exception); |
}; |
class JsEngine |
{ |
public: |
JsEngine(const FileReader* const fileReader, |
ErrorCallback* const errorCallback); |
- void Evaluate(const std::string& source); |
+ void Evaluate(const char* source, const char* filename = NULL); |
+ void Evaluate(const std::string& source, |
+ const std::string& filename = ""); |
void Load(const std::string& scriptPath); |
std::string Call(const std::string& functionName); |
void Gc(); |
private: |
const FileReader* const fileReader; |
v8::Persistent<v8::Context> context; |
}; |