diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc index e6de9423710706..351f8a34fe0884 100644 --- a/src/tls_wrap.cc +++ b/src/tls_wrap.cc @@ -933,6 +933,7 @@ void TLSWrap::Initialize(Local target, env->SetMethod(target, "wrap", TLSWrap::Wrap); auto constructor = [](const FunctionCallbackInfo& args) { + CHECK(args.IsConstructCall()); args.This()->SetAlignedPointerInInternalField(0, nullptr); }; auto t = env->NewFunctionTemplate(constructor);