mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
src: remove ContextEmbedderIndex::kBindingDataStoreIndex
We can now get the binding data through the reference to the realm directly, so remove it from the context embedder data slot. PR-URL: https://github.com/nodejs/node/pull/48836 Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This commit is contained in:
1 parent
857774029c
commit
faefe560ef
16 files changed
+26
-48
No files matched your search
@@ -566,7 +566,7 @@ void BindingData::Deserialize(Local<Context> context,
|
||||
v8::HandleScope scope(context->GetIsolate());
|
||||
Realm* realm = Realm::GetCurrent(context);
|
||||
// Recreate the buffer in the constructor.
|
||||
BindingData* binding = realm->AddBindingData<BindingData>(context, holder);
|
||||
BindingData* binding = realm->AddBindingData<BindingData>(holder);
|
||||
CHECK_NOT_NULL(binding);
|
||||
}
|
||||
|
||||
@@ -607,7 +607,7 @@ static void CreatePerContextProperties(Local<Object> target,
|
||||
Local<Context> context,
|
||||
void* priv) {
|
||||
Realm* realm = Realm::GetCurrent(context);
|
||||
realm->AddBindingData<BindingData>(context, target);
|
||||
realm->AddBindingData<BindingData>(target);
|
||||
}
|
||||
|
||||
void RegisterExternalReferences(ExternalReferenceRegistry* registry) {
|
||||
|
||||
Reference in new issue
Block a user