summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2017-06-05 13:56:21 +0200
committerMyles Borins <mylesborins@google.com>2017-07-17 14:16:07 -0400
commit69143ffcf98f925dd20977e085a420cc39c1fc0c (patch)
treeb9e305f91e2a3ede5c59f285487aec01fd4fb5b6
parent17da29ce84739803cd45aff632c933ab51bbd52d (diff)
downloadnode-new-69143ffcf98f925dd20977e085a420cc39c1fc0c.tar.gz
src: make IsConstructCall checks consistent
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 <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
-rw-r--r--src/node_crypto.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_crypto.cc b/src/node_crypto.cc
index 10939f043b..bea654b644 100644
--- a/src/node_crypto.cc
+++ b/src/node_crypto.cc
@@ -3313,7 +3313,7 @@ void CipherBase::Initialize(Environment* env, Local<Object> target) {
void CipherBase::New(const FunctionCallbackInfo<Value>& 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);