| Index: src/heap-inl.h
|
| diff --git a/src/heap-inl.h b/src/heap-inl.h
|
| index 0bdf522bc7a08915009967315505fe01bc433e91..33bc4f9ad70cc49a19c6e987886f9f323b4a19bd 100644
|
| --- a/src/heap-inl.h
|
| +++ b/src/heap-inl.h
|
| @@ -91,7 +91,7 @@ MaybeObject* Heap::AllocateStringFromUtf8(Vector<const char> str,
|
| if (non_ascii_start >= length) {
|
| // If the string is ASCII, we do not need to convert the characters
|
| // since UTF8 is backwards compatible with ASCII.
|
| - return AllocateStringFromAscii(str, pretenure);
|
| + return AllocateStringFromOneByte(str, pretenure);
|
| }
|
| // Non-ASCII and we need to decode.
|
| return AllocateStringFromUtf8Slow(str, non_ascii_start, pretenure);
|
|
|