diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 627c14360e1..7d2cba22576 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -3940,8 +3940,7 @@ void DiffieHellman::Initialize(Environment* env, Local target) { env->as_external(), Signature::New(env->isolate(), t), /* length */ 0, - // TODO(TimothyGu): should be deny - ConstructorBehavior::kAllow, + ConstructorBehavior::kThrow, SideEffectType::kHasNoSideEffect); t->InstanceTemplate()->SetAccessorProperty( @@ -3969,8 +3968,7 @@ void DiffieHellman::Initialize(Environment* env, Local target) { env->as_external(), Signature::New(env->isolate(), t2), /* length */ 0, - // TODO(TimothyGu): should be deny - ConstructorBehavior::kAllow, + ConstructorBehavior::kThrow, SideEffectType::kHasNoSideEffect); t2->InstanceTemplate()->SetAccessorProperty(