diff --git a/src/node_contextify.cc b/src/node_contextify.cc index 6520355239e..8880439c8a7 100644 --- a/src/node_contextify.cc +++ b/src/node_contextify.cc @@ -216,8 +216,9 @@ class ContextifyContext { object_template->SetHandler(config); Local ctx = Context::New(env->isolate(), nullptr, object_template); - if (!ctx.IsEmpty()) - ctx->SetSecurityToken(env->context()->GetSecurityToken()); + + CHECK(!ctx.IsEmpty()); + ctx->SetSecurityToken(env->context()->GetSecurityToken()); env->AssignToContext(ctx);