IntlObject.cpp::removeUnicodeLocaleExtension() should not touch locales that end...
authorrmorisset@apple.com <rmorisset@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 May 2018 15:47:29 +0000 (15:47 +0000)
committerrmorisset@apple.com <rmorisset@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 May 2018 15:47:29 +0000 (15:47 +0000)
commit6dff1f7360c9529043ff87e3a8666d9dc005b4c2
tree103819e8bb79e934a2fd0e73e139d3cce8bf419a
parentf82a360a2fd06992216f797b3b75d37d30d3f82f
IntlObject.cpp::removeUnicodeLocaleExtension() should not touch locales that end in '-u'
https://bugs.webkit.org/show_bug.cgi?id=185162

Reviewed by Filip Pizlo.

JSTests:

* stress/incomplete-unicode-locale.js: Added.
(catch):

Source/JavaScriptCore:

* runtime/IntlObject.cpp:
(JSC::removeUnicodeLocaleExtension):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231196 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JSTests/ChangeLog
JSTests/stress/incomplete-unicode-locale.js [new file with mode: 0644]
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/runtime/IntlObject.cpp