| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index c223003d2f844a572dc1413a291e063a7ede329c..d5815f2ecffa12f71ad39ab5a89c21088d92bf4e 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -333,7 +333,8 @@ bool String::IsTwoByteRepresentationUnderneath() {
|
|
|
| bool String::HasOnlyAsciiChars() {
|
| uint32_t type = map()->instance_type();
|
| - return (type & kAsciiDataHintMask) == kAsciiDataHintTag;
|
| + return (type & kStringEncodingMask) == kOneByteStringTag ||
|
| + (type & kAsciiDataHintMask) == kAsciiDataHintTag;
|
| }
|
|
|
|
|
|
|