@@ -13,6 +13,7 @@ using v8::Context;
|
13 | 13 | using v8::FunctionCallbackInfo; |
14 | 14 | using v8::Isolate; |
15 | 15 | using v8::Local; |
| 16 | +using v8::LocalVector; |
16 | 17 | using v8::Object; |
17 | 18 | using v8::String; |
18 | 19 | using v8::Value; |
@@ -26,7 +27,7 @@ int collectProviders(OSSL_PROVIDER* provider, void* cbdata) {
|
26 | 27 | |
27 | 28 | inline void GetProviders(const FunctionCallbackInfo<Value>& args) { |
28 | 29 | Isolate* isolate = args.GetIsolate(); |
29 | | -std::vector<Local<Value>> arr = {}; |
| 30 | +LocalVector<Value> arr(isolate, 0); |
30 | 31 | #if OPENSSL_VERSION_MAJOR >= 3 |
31 | 32 | std::vector<OSSL_PROVIDER*> providers; |
32 | 33 | OSSL_PROVIDER_do_all(nullptr, &collectProviders, &providers); |
|