From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Nitish Sakhawalkar <nitsakh@icloud.com>
Date: Thu, 7 Mar 2019 17:02:13 -0800
Subject: src: use CHECK(false) in switch default case

Porting https://github.com/nodejs/node/pull/26502

diff --git a/src/node_crypto.cc b/src/node_crypto.cc
index 2143117ec3b782ce307bcb3c7183594bc233d5e8..f232c9571ae5452996955b7bc149da663ee7d56a 100644
--- a/src/node_crypto.cc
+++ b/src/node_crypto.cc
@@ -3476,7 +3476,7 @@ static ManagedEVPPKey GetPublicOrPrivateKeyFromJs(
           is_public = false;
           break;
         default:
-          UNREACHABLE("Invalid key encoding type");
+          CHECK(false);
       }
 
       if (is_public) {
