Index: src/JsEngine.cpp |
diff --git a/src/JsEngine.cpp b/src/JsEngine.cpp |
index dc4688ff61124be3c1029b11f346fa9a61930d29..b5839ec64014ebaf470de2993e20cf66d064e47c 100644 |
--- a/src/JsEngine.cpp |
+++ b/src/JsEngine.cpp |
@@ -144,6 +144,12 @@ AdblockPlus::JsValuePtr AdblockPlus::JsEngine::NewObject() |
return JsValuePtr(new JsValue(shared_from_this(), v8::Object::New())); |
} |
+AdblockPlus::JsValuePtr AdblockPlus::JsEngine::NewArray() |
+{ |
+ const JsContext context(shared_from_this()); |
+ return JsValuePtr(new JsValue(shared_from_this(), v8::Array::New())); |
+} |
+ |
AdblockPlus::JsValuePtr AdblockPlus::JsEngine::NewCallback( |
v8::InvocationCallback callback) |
{ |