diff --git a/src/node.cc b/src/node.cc index e2b8719b23c3cd..3345763b4b43c1 100644 --- a/src/node.cc +++ b/src/node.cc @@ -3267,8 +3267,9 @@ void SetupProcessObject(Environment* env, READONLY_PROPERTY(process, "pid", Integer::New(env->isolate(), getpid())); READONLY_PROPERTY(process, "features", GetFeatures(env)); - process->SetAccessor(FIXED_ONE_BYTE_STRING(env->isolate(), "ppid"), - GetParentProcessId); + CHECK(process->SetAccessor(env->context(), + FIXED_ONE_BYTE_STRING(env->isolate(), "ppid"), + GetParentProcessId).FromJust()); auto need_immediate_callback_string = FIXED_ONE_BYTE_STRING(env->isolate(), "_needImmediateCallback");