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 57b9b9d commit 60132e8Copy full SHA for 60132e8
src/tls_wrap.cc
@@ -933,6 +933,7 @@ void TLSWrap::Initialize(Local<Object> target,
933
env->SetMethod(target, "wrap", TLSWrap::Wrap);
934
935
auto constructor = [](const FunctionCallbackInfo<Value>& args) {
936
+ CHECK(args.IsConstructCall());
937
args.This()->SetAlignedPointerInInternalField(0, nullptr);
938
};
939
auto t = env->NewFunctionTemplate(constructor);
0 commit comments