We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35b1cac commit c4a9dcbCopy full SHA for c4a9dcb
src/crypto/crypto_hash.cc
@@ -148,9 +148,9 @@ void Hash::GetCachedAliases(const FunctionCallbackInfo<Value>& args) {
148
size_t size = env->alias_to_md_id_map.size();
149
LocalVector<Name> names(isolate);
150
LocalVector<Value> values(isolate);
151
+#if OPENSSL_VERSION_MAJOR >= 3
152
names.reserve(size);
153
values.reserve(size);
-#if OPENSSL_VERSION_MAJOR >= 3
154
for (auto& [alias, id] : env->alias_to_md_id_map) {
155
names.push_back(OneByteString(isolate, alias.c_str(), alias.size()));
156
values.push_back(v8::Uint32::New(isolate, id));
0 commit comments