Open
Description
Testsuite from_avmplus/as3/String/localeCompare_585791/v9
Notes: Specifically SWF 9 and below.
Test | Passes? | Expected | Actual |
---|---|---|---|
"m".localeCompare(null) with SWF9 behavior | ❌ | 0 |
-1 |
"null".localeCompare(null) with SWF9 | ✔️ | ||
"o".localeCompare(null) with SWF9 behavior | ❌ | 0 |
1 |
"".localeCompare(null) with SWF9 behavior | ❌ | 1 |
-1 |
"t".localeCompare(undefined) with SWF9 behavior | ❌ | 0 |
-1 |
"undefined".localeCompare(undefined) with SWF9 behavior | ✔️ | ||
"v".localeCompare(undefined) with SWF9 behavior | ❌ | 0 |
1 |
"".localeCompare(undefined) with SWF9 behavior | ❌ | 1 |
-1 |