Bug 1015917 part 1 - Support string concatenation for Latin1 strings. r=luke

This commit is contained in:
Jan de Mooij
2014-05-31 10:44:32 +02:00
parent eb861e57c7
commit 30533fc8f7
17 changed files with 284 additions and 116 deletions

View File

@@ -452,7 +452,7 @@ js::Atomize(ExclusiveContext *cx, const char *bytes, size_t length, InternBehavi
* js::AtomizeString rarely has to copy the temp string we make.
*/
jschar inflated[ATOMIZE_BUF_MAX];
InflateStringToBuffer(bytes, length, inflated);
CopyAndInflateChars(inflated, bytes, length);
return AtomizeAndCopyChars(cx, inflated, length, ib);
}