Skip to content

Commit

Permalink
src, test: use v8::DeserializeEmbedderFieldsCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
joyeecheung committed Nov 30, 2023
1 parent ba3a67e commit 7559a8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/node_contextify.cc
Expand Up @@ -213,15 +213,15 @@ MaybeLocal<Context> ContextifyContext::CreateV8Context(
nullptr, // extensions
object_template,
{}, // global object
v8::DeserializeInternalFieldsCallback(), // deserialization callback
v8::DeserializeEmbedderFieldsCallback(), // deserialization callback
queue);
if (ctx.IsEmpty() || InitializeBaseContextForSnapshot(ctx).IsNothing()) {
return MaybeLocal<Context>();
}
} else if (!Context::FromSnapshot(
isolate,
SnapshotData::kNodeVMContextIndex,
v8::DeserializeInternalFieldsCallback(), // deserialization
v8::DeserializeEmbedderFieldsCallback(), // deserialization
// callback
nullptr, // extensions
{}, // global object
Expand Down
2 changes: 1 addition & 1 deletion test/cctest/test_environment.cc
Expand Up @@ -691,7 +691,7 @@ TEST_F(EnvironmentTest, NestedMicrotaskQueue) {
nullptr,
{},
{},
v8::DeserializeInternalFieldsCallback(),
v8::DeserializeEmbedderFieldsCallback(),
queue.get());
node::InitializeContext(context);
v8::Context::Scope context_scope(context);
Expand Down

0 comments on commit 7559a8a

Please sign in to comment.