diff --git a/src/string_bytes.cc b/src/string_bytes.cc index 6dcc32f36e01bd..748886cc11549b 100644 --- a/src/string_bytes.cc +++ b/src/string_bytes.cc @@ -736,11 +736,8 @@ MaybeLocal StringBytes::Encode(Isolate* isolate, } default: - CHECK(0 && "unknown encoding"); - break; + UNREACHABLE("unknown encoding"); } - - UNREACHABLE(); }