summaryrefslogtreecommitdiff
path: root/src/node_crypto.h
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2017-07-25 12:20:40 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2017-07-27 17:11:08 +0200
commit1b7372f2fb55f704b885e1097e2ec0381068c855 (patch)
treefe5ca729487cca97831c5bbd6edafd280a9c5814 /src/node_crypto.h
parent1fa67c7fc2ef9fc226545f5de22c51964dbc27e1 (diff)
downloadandroid-node-v8-1b7372f2fb55f704b885e1097e2ec0381068c855.tar.gz
android-node-v8-1b7372f2fb55f704b885e1097e2ec0381068c855.tar.bz2
android-node-v8-1b7372f2fb55f704b885e1097e2ec0381068c855.zip
src: replace ASSERT with CHECK
Builds always have asserts enabled so there is no point distinguishing between debug-only checks and run-time checks. Replace calls to ASSERT and friends with their CHECK counterparts. Fixes: https://github.com/nodejs/node/issues/14461 PR-URL: https://github.com/nodejs/node/pull/14474 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com> Reviewed-By: XadillaX <admin@xcoder.in>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r--src/node_crypto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h
index 1d823bcb35..b406fb8aa6 100644
--- a/src/node_crypto.h
+++ b/src/node_crypto.h
@@ -718,7 +718,7 @@ class ECDH : public BaseObject {
key_(key),
group_(EC_KEY_get0_group(key_)) {
MakeWeak<ECDH>(this);
- ASSERT_NE(group_, nullptr);
+ CHECK_NE(group_, nullptr);
}
static void New(const v8::FunctionCallbackInfo<v8::Value>& args);