We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e23da1 commit 37e1929Copy full SHA for 37e1929
src/tls_wrap.cc
@@ -913,6 +913,7 @@ void TLSWrap::Initialize(Local<Object> target,
913
env->SetMethod(target, "wrap", TLSWrap::Wrap);
914
915
auto constructor = [](const FunctionCallbackInfo<Value>& args) {
916
+ CHECK(args.IsConstructCall());
917
args.This()->SetAlignedPointerInInternalField(0, nullptr);
918
};
919
auto t = env->NewFunctionTemplate(constructor);
0 commit comments