diff options
Diffstat (limited to 'deps/v8/src/json-stringifier.h')
-rw-r--r-- | deps/v8/src/json-stringifier.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/v8/src/json-stringifier.h b/deps/v8/src/json-stringifier.h index 5ebdb40b51..ebfaf9928a 100644 --- a/deps/v8/src/json-stringifier.h +++ b/deps/v8/src/json-stringifier.h @@ -832,14 +832,14 @@ Vector<const uc16> BasicJsonStringifier::GetCharVector(Handle<String> string) { void BasicJsonStringifier::SerializeString(Handle<String> object) { object = FlattenGetString(object); if (is_ascii_) { - if (object->IsOneByteRepresentation()) { + if (object->IsOneByteRepresentationUnderneath()) { SerializeString_<true, uint8_t>(object); } else { ChangeEncoding(); SerializeString(object); } } else { - if (object->IsOneByteRepresentation()) { + if (object->IsOneByteRepresentationUnderneath()) { SerializeString_<false, uint8_t>(object); } else { SerializeString_<false, uc16>(object); |