diff --git a/src/util.cc b/src/util.cc index 9fb5c3fd28..fb23f75ede 100644 --- a/src/util.cc +++ b/src/util.cc @@ -48,8 +48,7 @@ TwoByteValue::TwoByteValue(Isolate* isolate, Local value) { const size_t storage = string->Length() + 1; AllocateSufficientStorage(storage); - const int flags = - String::NO_NULL_TERMINATION | String::REPLACE_INVALID_UTF8; + const int flags = String::NO_NULL_TERMINATION; const int length = string->Write(out(), 0, storage, flags); SetLengthAndZeroTerminate(length); }