@@ -1035,13 +1035,13 @@ void WallProfiler::SetContext(Isolate* isolate, Local<Value> value) {
1035
1035
1036
1036
auto cped = isolate->GetContinuationPreservedEmbedderData ();
1037
1037
// No Node AsyncContextFrame in this continuation yet
1038
- if (!cped->IsObject ()) return ;
1038
+ if (!cped->IsMap ()) return ;
1039
1039
1040
1040
auto v8Ctx = isolate->GetCurrentContext ();
1041
1041
// This should always be called from a V8 context, but check just in case.
1042
1042
if (v8Ctx.IsEmpty ()) return ;
1043
1043
1044
- auto cpedObj = cped.As <Object >();
1044
+ auto cpedObj = cped.As <Map >();
1045
1045
auto localSymbol = cpedSymbol_.Get (isolate);
1046
1046
auto maybeProfData = cpedObj->Get (v8Ctx, localSymbol);
1047
1047
if (maybeProfData.IsEmpty ()) return ;
@@ -1057,7 +1057,7 @@ void WallProfiler::SetContext(Isolate* isolate, Local<Value> value) {
1057
1057
auto maybeSetResult = cpedObj->Set (v8Ctx, localSymbol, external);
1058
1058
std::atomic_signal_fence (std::memory_order_release);
1059
1059
setInProgress.store (false , std::memory_order_relaxed);
1060
- if (maybeSetResult.IsNothing ()) {
1060
+ if (maybeSetResult.IsEmpty ()) {
1061
1061
delete contextPtr;
1062
1062
return ;
1063
1063
}
@@ -1107,12 +1107,12 @@ ContextPtr WallProfiler::GetContextPtr(Isolate* isolate) {
1107
1107
#define RETURN_EMPTY_IF (x ) if (x) return std::shared_ptr<Global<Value>>()
1108
1108
1109
1109
auto cped = isolate->GetContinuationPreservedEmbedderData ();
1110
- RETURN_EMPTY_IF (!cped->IsObject ());
1110
+ RETURN_EMPTY_IF (!cped->IsMap ());
1111
1111
1112
1112
auto v8Ctx = isolate->GetEnteredOrMicrotaskContext ();
1113
1113
RETURN_EMPTY_IF (v8Ctx.IsEmpty ());
1114
1114
1115
- auto cpedObj = cped.As <Object >();
1115
+ auto cpedObj = cped.As <Map >();
1116
1116
auto localSymbol = cpedSymbol_.Get (isolate);
1117
1117
auto maybeProfData = cpedObj->Get (v8Ctx, localSymbol);
1118
1118
RETURN_EMPTY_IF (maybeProfData.IsEmpty ());
0 commit comments