Index: src/JsEngine.cpp |
diff --git a/src/JsEngine.cpp b/src/JsEngine.cpp |
index 24a574b7faa07e774155f59be12eb5285c45c4a0..9e540a57cd07b339923772854d57a4b9289dea83 100644 |
--- a/src/JsEngine.cpp |
+++ b/src/JsEngine.cpp |
@@ -321,6 +321,17 @@ JsValueList JsEngine::TakeJsValues(const JsWeakValuesID& id) |
return retValue; |
} |
+JsValueList JsEngine::GetJsValues(const JsWeakValuesID& id) |
+{ |
+ JsValueList retValue; |
+ JsContext context(*this); |
+ for (const auto& v8Value : id.iterator->values) |
+ { |
+ retValue.emplace_back(JsValue(shared_from_this(), v8::Local<v8::Value>::New(GetIsolate(), v8Value))); |
+ } |
+ return retValue; |
+} |
+ |
AdblockPlus::JsValueList AdblockPlus::JsEngine::ConvertArguments(const v8::FunctionCallbackInfo<v8::Value>& arguments) |
{ |
const JsContext context(*this); |