diff --git a/src/node_crypto.cc b/src/node_crypto.cc
index b4766eabb57ac3..1121b148552487 100644
--- a/src/node_crypto.cc
+++ b/src/node_crypto.cc
@@ -2991,9 +2991,15 @@ void SSLWrap::CertCbDone(const FunctionCallbackInfo& args) {
goto fire_cb;
if (cons->HasInstance(ctx)) {
- SecureContext* sc;
- ASSIGN_OR_RETURN_UNWRAP(&sc, ctx.As