diff options
author | Alexey Orlenko <eaglexrlnk@gmail.com> | 2017-11-21 04:40:35 +0200 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-11-21 08:01:58 -0800 |
commit | 4b34e6fef13f182502892eb6d5561a3cbb223e63 (patch) | |
tree | 3f6df0c296c4c176050fea02c90e54c96f6b0795 /src/node_zlib.cc | |
parent | f5352b3f320abe866c6b48640df1514a14fabb73 (diff) | |
download | android-node-v8-4b34e6fef13f182502892eb6d5561a3cbb223e63.tar.gz android-node-v8-4b34e6fef13f182502892eb6d5561a3cbb223e63.tar.bz2 android-node-v8-4b34e6fef13f182502892eb6d5561a3cbb223e63.zip |
src: remove unprofessional slang in assertions
Convert `CHECK(0 && "wtf?")` (sic) assertions to more suitable
`UNREACHABLE()` macro invocations in `node_zlib.cc`.
PR-URL: https://github.com/nodejs/node/pull/17166
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Diffstat (limited to 'src/node_zlib.cc')
-rw-r--r-- | src/node_zlib.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_zlib.cc b/src/node_zlib.cc index 08df3e97d7..21145a0d5b 100644 --- a/src/node_zlib.cc +++ b/src/node_zlib.cc @@ -322,7 +322,7 @@ class ZCtx : public AsyncWrap { } break; default: - CHECK(0 && "wtf?"); + UNREACHABLE(); } // pass any errors back to the main thread to deal with. @@ -550,7 +550,7 @@ class ZCtx : public AsyncWrap { ->AdjustAmountOfExternalAllocatedMemory(kInflateContextSize); break; default: - CHECK(0 && "wtf?"); + UNREACHABLE(); } ctx->dictionary_ = reinterpret_cast<Bytef *>(dictionary); |