WTF String from ASCIILiteral fails to correctly handle empty strings.
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Dec 2012 20:17:25 +0000 (20:17 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Dec 2012 20:17:25 +0000 (20:17 +0000)
commita66341a4d7f0a53878ae6f6d45d9d306664d56bc
tree4b99b4cd7e550f1d256d3ee6b2c2e3a2ecb9757f
parent7ce8274753ecc3953365ed24bec25aca19ca787a
WTF String from ASCIILiteral fails to correctly handle empty strings.
https://bugs.webkit.org/show_bug.cgi?id=105453

Reviewed by Anders Carlsson.

When we have an zero length literal we should return the empty StringImpl.

* wtf/text/StringImpl.cpp:
(WTF::StringImpl::createFromLiteral):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@138187 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF/ChangeLog
Source/WTF/wtf/text/StringImpl.cpp