v8/test/intl
Frank Tang ce9b1b2ab0 [intl] Remove incorrect optimization for 0 length string
In collator and localeCompare, we have an incorrect optimization
for zero length string that compare the length and ignore the
fact some non zero length string could be considered as equal to
a zero length string because the content are all ignoreable.

Took out this incorrect optimization with test cases.

The regression is introduced in
6fbb8bc806 which first appeared in 97.0.4665.0



Bug: chromium:1347690
Change-Id: Ie70feb9598b1842f8a8744c38f33b3397865abfd
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3832526
Reviewed-by: Shu-yu Guo <syg@chromium.org>
Reviewed-by: Jakob Linke <jgruber@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82632}
2022-08-22 18:44:18 +00:00
..
bigint [Intl] Clean up by removing the following flags 2019-09-12 22:25:41 +00:00
break-iterator [Intl] Remove --harmony-intl-list-format flag from test 2019-02-13 23:22:43 +00:00
collator Add "collation" option to Intl.Collator 2020-07-21 18:32:22 +00:00
date-format [Intl] Remove DateTimeFormat order check not throw RangeError 2022-07-27 05:31:00 +00:00
displaynames [intl] Clean up 2021-11-20 03:53:26 +00:00
enumeration [intl] Removed shipped flag 2022-03-08 07:06:23 +00:00
general [Intl] Update ICU to 69-1 2021-04-20 22:37:09 +00:00
list-format Implement GetOptionsObject/CoerceOptionsToObject 2021-02-26 22:45:22 +00:00
locale [intl] Removed shipped flag 2022-03-08 07:06:23 +00:00
localematcher Reland "[intl] Improve test coverage of "best fit" localeMatcher" 2021-06-21 17:37:31 +00:00
number-format [intl] Sync to PR100 of intl-numberformat-v3 2022-07-27 04:42:47 +00:00
overrides Revert "Make intl/overrides/caching.js more 'robust'" 2017-11-13 19:13:13 +00:00
plural-rules [intl] NumberFormat v3 Part 4 SelectRange 2022-03-16 11:01:35 +00:00
relative-time-format Fix android test breakage due to lack of locale 2020-04-01 21:34:33 +00:00
segmenter Implement GetOptionsObject/CoerceOptionsToObject 2021-02-26 22:45:22 +00:00
string
temporal/calendar Reland "[Temporal] Fix Calendar.prototype.fields CSA" 2022-05-02 20:56:55 +00:00
assert.js [intl] Fix Intl Locale Info 2021-06-15 19:16:01 +00:00
bad-target.js [intl] Remove redundant type checking system 2017-01-09 22:24:57 +00:00
BUILD.gn [build] Add data deps for d8 test suites 2018-03-26 13:44:58 +00:00
default_locale.js [Intl] Remove GetDefaultLocale 2018-12-07 06:27:42 +00:00
DIR_METADATA Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
intl.status Update ICU 2022-06-21 21:19:58 +00:00
not-constructors.js [intl] Remove new.target check in Intl functions and method 2016-12-20 16:06:19 +00:00
OWNERS Add DIR_METADATA files to v8. 2020-10-20 22:12:28 +00:00
regress-4870.js
regress-5179.js
regress-7481.js [Intl] Reland tests of "Validate u extension type" 2019-01-08 01:53:26 +00:00
regress-7770.js [mjsunit] Fix intl test when LC_MESSAGES is set 2021-08-24 10:10:12 +00:00
regress-7982.js Fix maximize/minimize of Intl.Locale 2020-06-10 00:01:37 +00:00
regress-8030.js Reland test part of "[Intl] Cleans up intl-relative-time-format flag" 2019-01-24 23:17:35 +00:00
regress-8031.js [Intl] Remove --harmony-intl-list-format flag from test 2019-02-13 23:22:43 +00:00
regress-8348.js [Intl] Cutting 43K by removing Unibrow when ICU available 2019-04-03 17:58:51 +00:00
regress-8432.js Drop regress-{8432,8413} from intl.status. 2018-11-18 09:07:16 +00:00
regress-8469.js [Intl] Add regression test for -u-tz- of Intl.DateTimeFormat 2018-12-05 03:02:24 +00:00
regress-8525.js [Intl] Fix numberingSystem for NumberFormat 2018-12-06 11:08:36 +00:00
regress-8604.js Add regression test for v8:8604 2019-04-18 20:48:10 +00:00
regress-8657.js [Intl] Remove harmony-locale flag 2019-05-11 06:02:42 +00:00
regress-8866.js Add regression test for v8:8866 2019-06-06 21:54:10 +00:00
regress-9035.js [Intl] Only use DecimalFormat 2019-03-26 00:28:47 +00:00
regress-9084.js Fix locale of Intl.Collator..resolvedOptions 2020-09-16 15:53:09 +00:00
regress-9312.js [Intl] Add test cases for %%ALIAS locales 2019-05-31 21:37:08 +00:00
regress-9356.js [Intl] Fix /ſ/i.test('ſ'.toUpperCase()) be false. 2019-09-27 18:13:00 +00:00
regress-9408.js [Intl] Clean up by removing the following flags 2019-09-12 22:25:41 +00:00
regress-9464.js Correct the name of the regression test 2019-09-13 16:14:50 +00:00
regress-9475.js [Intl] Clean up by removing the following flags 2019-09-12 22:25:41 +00:00
regress-9513.js [Intl] Clean up by removing the following flags 2019-09-12 22:25:41 +00:00
regress-9642.js Fix crash under lb_LU locale 2019-08-26 17:07:12 +00:00
regress-9731.js [Intl] Fix /k/i.test('\u212A') 2019-09-27 17:37:50 +00:00
regress-9747.js [Intl] Sync ListFormat to latest spec. 2019-09-19 20:02:53 +00:00
regress-9786.js [intl] Remove two flags ship in m80 2020-04-24 19:17:26 +00:00
regress-9787.js [intl] Remove two flags ship in m80 2020-04-24 19:17:26 +00:00
regress-9788.js [intl] Remove two flags ship in m80 2020-04-24 19:17:26 +00:00
regress-9812.js [Intl] Add test for calendar of formatRange 2019-10-07 22:31:39 +00:00
regress-9849.js Fix crash bug with some numberingSystem and dateStyle/timeStyle 2019-10-21 20:12:54 +00:00
regress-9887.js [intl] Remove two flags ship in m80 2020-04-24 19:17:26 +00:00
regress-9912.js Fix the format of date range older than Oct 15 1582 2019-10-29 18:12:25 +00:00
regress-10248.js [regexp] Fix and unify non-unicode case-folding algorithms 2020-03-10 11:09:28 +00:00
regress-10437.js [intl] Add failing test for v8:10437 2020-04-23 17:10:17 +00:00
regress-10438.js Use better error messages for dateStyle/timeStyle 2020-09-11 11:26:50 +00:00
regress-10526.js Reland "Add regression tests for 4 calendar bugs" 2020-11-17 23:47:08 +00:00
regress-10527.js Reland "Add regression tests for 4 calendar bugs" 2020-11-17 23:47:08 +00:00
regress-10528.js Reland "Add regression tests for 4 calendar bugs" 2020-11-17 23:47:08 +00:00
regress-10529.js [Intl] Update ICU to 70-1 on v8 2021-11-12 11:35:09 +00:00
regress-10573.js [regexp] Document incorrect assertion in intl/regress-10573.js 2020-06-09 06:27:27 +00:00
regress-10599.js Roll icu to fix sr-ME timeZoneName in Latin bug 2020-06-19 06:42:51 +00:00
regress-10613.js Use better error messages for dateStyle/timeStyle 2020-09-11 11:26:50 +00:00
regress-10836.js Change the order of the DateTimeFormat resolved 2020-08-27 20:39:05 +00:00
regress-10960.js [intl] Fix timezone bug in test 2020-10-05 14:41:51 +00:00
regress-11295.js Fix resolvedOption calendar for "iso8601" 2021-01-12 06:22:08 +00:00
regress-11350.js Fix m(in|ax)imize() with long locale 2021-01-29 00:28:32 +00:00
regress-11595.js Fix BestFitMatcher due to invalid locale id in ICU 2021-04-07 06:17:53 +00:00
regress-364374.js Fix special case timezone RangeError 2020-04-15 18:19:00 +00:00
regress-527926.js [Intl] Fix output of hour:'2-digit', hour12: true 2019-03-21 07:34:22 +00:00
regress-875643.js [Intl] Convert options arg to Object before processing it 2018-08-31 23:56:33 +00:00
regress-888299.js [Intl] Remove incorrect CHECK 2018-09-26 00:24:28 +00:00
regress-895942.js [Intl] Validate extension keys 2018-11-06 12:11:50 +00:00
regress-900013.js Reland "[intl] Clean up intl_segmenter flag" 2020-12-10 10:25:48 +00:00
regress-903566.js [test][cleanup] Revive --time, speed up some tests 2019-09-16 11:24:11 +00:00
regress-917151.js [Intl] Fix CHECK fail in Intl::ToLanguageTag() 2019-01-04 01:33:26 +00:00
regress-925216.js [Intl] Fix DefaultHourCycle to skip hHkK in literal 2019-01-28 22:54:47 +00:00
regress-928068.js [Intl] Fix special case timezone 2019-03-07 23:33:22 +00:00
regress-930304.js [Intl] Fix Null-dereference in CreateICUDateFormatFromCache 2019-02-14 09:53:56 +00:00
regress-966285.js [intl] Remove two flags ship in m80 2020-04-24 19:17:26 +00:00
regress-971636.js [Intl] Fix RegExp [\W] with i flag 2019-06-12 06:18:08 +00:00
regress-992694.js [Intl] Fix Hungarian number format grouping 2019-09-13 17:14:41 +00:00
regress-997401.js Remove CHECK which fail while the locale is long. 2019-09-10 19:28:54 +00:00
regress-1003748.js [Intl] Fix m(ax|in)imumFractionDigits for currency 2019-09-17 16:34:00 +00:00
regress-1012579.js [Intl] Fix ASAN crash listformat w/ > 9 items 2020-11-14 05:42:45 +00:00
regress-1030160.js Fix format of -NAN in toLocaleString() 2020-02-24 17:11:26 +00:00
regress-1041319.js Reland "[Intl] Fix RelativeTimeFormat fatal" 2020-02-18 18:29:08 +00:00
regress-1074578.js Roll ICU and correct timezone test 2021-10-21 18:39:31 +00:00
regress-1107661.js Fix "japanese" and "chinese" calendar 2020-10-01 10:32:42 +00:00
regress-1108810.js Fix minimumIntegerDigits in NumberFormat 2020-07-30 17:28:40 +00:00
regress-1121156.js Reland "[intl] Clean up intl_segmenter flag" 2020-12-10 10:25:48 +00:00
regress-1130489.js Fix fuzzer problem due to allocation of string 2020-09-22 19:53:28 +00:00
regress-1132641.js [date] Fix crash by invalid TimeZone "US/x0" names. 2020-09-28 21:34:34 +00:00
regress-1146468.js roll icu to Fix debug assertion in ICU Locale::setKeywordValue 2020-11-14 03:19:17 +00:00
regress-1170305.js [intl] Fix space between day and hour in Chinese locale 2021-01-29 00:29:37 +00:00
regress-1177623.js Fix Use-of-uninitialized-value 2021-02-19 21:11:27 +00:00
regress-1177812.js Fix Use-of-uninitialized-value 2021-02-19 21:11:27 +00:00
regress-1224869.js [Intl] throw instead of DCHECK while long locale 2021-08-03 07:33:29 +00:00
regress-1336865.js Fix unreachable code under --harmony-intl-number-format-v3 2022-06-22 02:57:57 +00:00
regress-1347690.js [intl] Remove incorrect optimization for 0 length string 2022-08-22 18:44:18 +00:00
regress-8725514.js [Intl] Throws exception on grandfather and private locale 2019-09-16 20:59:11 +00:00
string-localecompare.js [flags] Rename --opt to --turbofan 2022-05-03 12:10:30 +00:00
testcfg.py [test] Refactor testrunner (4) 2022-07-18 09:52:24 +00:00
toStringTag.js [Intl] Define @@toStringTag for Intl namespace 2020-08-01 02:21:20 +00:00
utils.js