Index: src/JsEngine.cpp |
diff --git a/src/JsEngine.cpp b/src/JsEngine.cpp |
index 1039aa3fb36795b101ca266310cc04a8efba4acf..d77b4ac9b0cdc391925605fbbed8e083a63248ff 100644 |
--- a/src/JsEngine.cpp |
+++ b/src/JsEngine.cpp |
@@ -227,6 +227,12 @@ AdblockPlus::JsValuePtr AdblockPlus::JsEngine::NewObject() |
return JsValuePtr(new JsValue(shared_from_this(), v8::Object::New())); |
} |
+JsValuePtr JsEngine::NullValue() |
+{ |
+ const JsContext context(shared_from_this()); |
+ return JsValuePtr(new JsValue(shared_from_this(), v8::Null())); |
+} |
+ |
AdblockPlus::JsValuePtr AdblockPlus::JsEngine::NewCallback( |
v8::InvocationCallback callback) |
{ |