summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc3
1 files changed, 1 insertions, 2 deletions
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> 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);
}