refactor: use gin_helper::Dictionary::CreateEmpty() helper (#40140)
This commit is contained in:
parent
47beca1d2a
commit
563c370d51
17 changed files with 30 additions and 42 deletions
|
@ -573,8 +573,8 @@ v8::MaybeLocal<v8::Object> CreateProxyForAPI(
|
|||
|
||||
{
|
||||
v8::Context::Scope destination_context_scope(destination_context);
|
||||
gin_helper::Dictionary proxy =
|
||||
gin::Dictionary::CreateEmpty(destination_context->GetIsolate());
|
||||
auto proxy =
|
||||
gin_helper::Dictionary::CreateEmpty(destination_context->GetIsolate());
|
||||
object_cache->CacheProxiedObject(api.GetHandle(), proxy.GetHandle());
|
||||
auto maybe_keys = api.GetHandle()->GetOwnPropertyNames(
|
||||
source_context, static_cast<v8::PropertyFilter>(v8::ONLY_ENUMERABLE));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue