RESOLVED DUPLICATE of bug 191415 126608
CStack Branch: LayoutTests/js/script-tests/ToNumber.js fails on ARM64
https://bugs.webkit.org/show_bug.cgi?id=126608
Summary CStack Branch: LayoutTests/js/script-tests/ToNumber.js fails on ARM64
Michael Saboff
Reported 2014-01-07 17:20:23 PST
The test fails for the items that test strings with the mongolianVowelSeparator (0x180e). I believe this is due to iOS handling u_charType(c) of 0x180e. iOS returns U_LETTER_NUMBER (10) and we expect U_SPACE_SEPARATOR (12). MacOSX returns U_SPACE_SEPARATOR (12). Here is the test output: Test the JavaScript ToNumber operation. On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". PASS +undefined is NaN PASS +null is 0 PASS +false is 0 PASS +true is 1 PASS +2 is 2 PASS +'' is 0 PASS +' ' is 0 PASS +' 1' is 1 PASS +'1 ' is 1 PASS +'x1' is NaN PASS +'1x' is NaN PASS +'0x1' is 1 PASS +'1x0' is NaN PASS +(nullCharacter + '1') is NaN PASS +('1' + nullCharacter) is NaN PASS +('1' + nullCharacter + '1') is NaN PASS +(nonASCIICharacter + '1') is NaN PASS +('1' + nonASCIICharacter) is NaN PASS +('1' + nonASCIICharacter + '1') is NaN PASS +('1' + nonASCIINonSpaceCharacter) is NaN PASS +(nonASCIINonSpaceCharacter + '1') is NaN PASS +('1' + nonASCIINonSpaceCharacter + '1') is NaN PASS +(illegalUTF16Sequence + '1') is NaN PASS +('1' + illegalUTF16Sequence) is NaN PASS +('1' + illegalUTF16Sequence + '1') is NaN PASS +'inf' is NaN PASS +'infinity' is NaN PASS +'Inf' is NaN PASS +'+inf' is NaN PASS +'+infinity' is NaN PASS +'+Inf' is NaN PASS +'-inf' is NaN PASS +'-infinity' is NaN PASS +'-Inf' is NaN PASS +'Infinity' is Infinity PASS +'+Infinity' is Infinity PASS +'-Infinity' is -Infinity PASS +'++1' is NaN PASS +'AB' is NaN PASS +'0xAB' is 171 PASS +'1e1' is 10 PASS +'1E1' is 10 PASS +tab is 0 PASS +nbsp is 0 PASS +ff is 0 PASS +vt is 0 PASS +cr is 0 PASS +lf is 0 PASS +ls is 0 PASS +ps is 0 PASS +oghamSpaceMark is 0 FAIL +mongolianVowelSeparator should be 0. Was NaN. PASS +enQuad is 0 PASS +emQuad is 0 PASS +enSpace is 0 PASS +emSpace is 0 PASS +threePerEmSpace is 0 PASS +fourPerEmSpace is 0 PASS +sixPerEmSpace is 0 PASS +figureSpace is 0 PASS +punctuationSpace is 0 PASS +thinSpace is 0 PASS +hairSpace is 0 PASS +narrowNoBreakSpace is 0 PASS +mediumMathematicalSpace is 0 PASS +ideographicSpace is 0 PASS +(tab + '1') is 1 PASS +(nbsp + '1') is 1 PASS +(ff + '1') is 1 PASS +(vt + '1') is 1 PASS +(cr + '1') is 1 PASS +(lf + '1') is 1 PASS +(ls + '1') is 1 PASS +(ps + '1') is 1 PASS +(oghamSpaceMark + '1') is 1 FAIL +(mongolianVowelSeparator + '1') should be 1. Was NaN. PASS +(enQuad + '1') is 1 PASS +(emQuad + '1') is 1 PASS +(enSpace + '1') is 1 PASS +(emSpace + '1') is 1 PASS +(threePerEmSpace + '1') is 1 PASS +(fourPerEmSpace + '1') is 1 PASS +(sixPerEmSpace + '1') is 1 PASS +(figureSpace + '1') is 1 PASS +(punctuationSpace + '1') is 1 PASS +(thinSpace + '1') is 1 PASS +(hairSpace + '1') is 1 PASS +(narrowNoBreakSpace + '1') is 1 PASS +(mediumMathematicalSpace + '1') is 1 PASS +(ideographicSpace + '1') is 1 PASS +('1' + tab) is 1 PASS +('1' + nbsp) is 1 PASS +('1' + ff) is 1 PASS +('1' + vt) is 1 PASS +('1' + cr) is 1 PASS +('1' + lf) is 1 PASS +('1' + ls) is 1 PASS +('1' + ps) is 1 PASS +('1' + oghamSpaceMark) is 1 FAIL +('1' + mongolianVowelSeparator) should be 1. Was NaN. PASS +('1' + enQuad) is 1 PASS +('1' + emQuad) is 1 PASS +('1' + enSpace) is 1 PASS +('1' + emSpace) is 1 PASS +('1' + threePerEmSpace) is 1 PASS +('1' + fourPerEmSpace) is 1 PASS +('1' + sixPerEmSpace) is 1 PASS +('1' + figureSpace) is 1 PASS +('1' + punctuationSpace) is 1 PASS +('1' + thinSpace) is 1 PASS +('1' + hairSpace) is 1 PASS +('1' + narrowNoBreakSpace) is 1 PASS +('1' + mediumMathematicalSpace) is 1 PASS +('1' + ideographicSpace) is 1 PASS +('1' + tab + '1') is NaN PASS +('1' + nbsp + '1') is NaN PASS +('1' + ff + '1') is NaN PASS +('1' + vt + '1') is NaN PASS +('1' + cr + '1') is NaN PASS +('1' + lf + '1') is NaN PASS +('1' + ls + '1') is NaN PASS +('1' + ps + '1') is NaN PASS +('1' + oghamSpaceMark + '1') is NaN PASS +('1' + mongolianVowelSeparator + '1') is NaN PASS +('1' + enQuad + '1') is NaN PASS +('1' + emQuad + '1') is NaN PASS +('1' + enSpace + '1') is NaN PASS +('1' + emSpace + '1') is NaN PASS +('1' + threePerEmSpace + '1') is NaN PASS +('1' + fourPerEmSpace + '1') is NaN PASS +('1' + sixPerEmSpace + '1') is NaN PASS +('1' + figureSpace + '1') is NaN PASS +('1' + punctuationSpace + '1') is NaN PASS +('1' + thinSpace + '1') is NaN PASS +('1' + hairSpace + '1') is NaN PASS +('1' + narrowNoBreakSpace + '1') is NaN PASS +('1' + mediumMathematicalSpace + '1') is NaN PASS +('1' + ideographicSpace + '1') is NaN PASS successfullyParsed is true TEST COMPLETE
Attachments
Leo Balter
Comment 1 2018-06-18 12:06:18 PDT
U+180E is no longer a Unicode `Space_Separator` symbol as of Unicode v6.3.0. I'm listing all the Test262 tests with a reference to it.
Ross Kirsling
Comment 2 2018-11-08 00:12:27 PST
*** This bug has been marked as a duplicate of bug 191415 ***
Note You need to log in before you can comment on or make changes to this bug.