chore: use emplace when possible (#37910)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
This commit is contained in:
trop[bot]
2023-04-11 11:53:18 +02:00
committed by GitHub
parent 78404eb23f
commit a6d934f2a2
4 changed files with 9 additions and 9 deletions

View File

@@ -19,7 +19,7 @@ void ObjectCache::CacheProxiedObject(v8::Local<v8::Value> from,
auto obj = from.As<v8::Object>();
int hash = obj->GetIdentityHash();
proxy_map_[hash].push_front(std::make_pair(from, proxy_value));
proxy_map_[hash].emplace_front(from, proxy_value);
}
}