diff --git a/src/node_process_object.cc b/src/node_process_object.cc index 57908e2f764004..4b0582c34ec13b 100644 --- a/src/node_process_object.cc +++ b/src/node_process_object.cc @@ -113,8 +113,8 @@ MaybeLocal CreateProcessObject(Realm* realm) { #define V(key) \ do { \ - versions_vec.push_back( \ - std::make_pair(#key, per_process::metadata.versions.key)); \ + versions_vec.emplace_back( \ + #key, per_process::metadata.versions.key); \ } while (0); NODE_VERSIONS_KEYS(V) #undef V