From f38302d92e7a80bbf2f53f48dac09b910dba391e Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Mon, 5 Jun 2017 13:56:21 +0200 Subject: [PATCH] src: make IsConstructCall checks consistent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The most common way to perfom this check is by using the simple CHECK macro. This commit suggest making this consistent in favour of the most commonly used. PR-URL: https://github.com/nodejs/node/pull/13473 Reviewed-By: Colin Ihrig Reviewed-By: Ben Noordhuis Reviewed-By: James M Snell Reviewed-By: Michael Dawson Reviewed-By: Michaƫl Zasso --- src/node_crypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 8c212168760..fbd3e9fe1c8 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -3323,7 +3323,7 @@ void CipherBase::Initialize(Environment* env, Local target) { void CipherBase::New(const FunctionCallbackInfo& args) { - CHECK_EQ(args.IsConstructCall(), true); + CHECK(args.IsConstructCall()); CipherKind kind = args[0]->IsTrue() ? kCipher : kDecipher; Environment* env = Environment::GetCurrent(args); new CipherBase(env, args.This(), kind);