diff --git a/src/runtime.cc b/src/runtime.cc index 7da24c3826..bf4fa4e57c 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -6444,7 +6444,7 @@ MUST_USE_RESULT static MaybeObject* ConvertCase( } } - String::Encoding result_encoding = s->IsOneByteRepresentationUnderneath() + String::Encoding result_encoding = s->IsOneByteRepresentation() ? String::ONE_BYTE_ENCODING : String::TWO_BYTE_ENCODING; Object* answer; { MaybeObject* maybe_answer = ConvertCaseHelper(