Inconsistent results for both Array.prototype.includes & Array.prototype.indexOf across OS (Mac/Win)
Reported by
t...@tradelab.fr,
Mar 1 2018
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36 Steps to reproduce the problem: Enter following code in Chrome console: const validTypes = ['application/vnd.ms-excel.sheet.macroenabled.12']; const ext = 'application/vnd.ms-excel.sheet.macroEnabled.12'; validTypes.includes(ext) validTypes.indexOf(ext) > -1 What is the expected behavior? Returned value should be the same across operating systems running same Chrome browser version. What went wrong? Both methods returns true with MacOS, and both methods returns false with Windows 10 Did this work before? N/A Chrome version: 64.0.3282.186 Channel: stable OS Version: OS X 10.13.3 Flash Version: Both methods are case sensitive with Chrome on Win10. I must confess i lost a fair amount of my hairs on this one guys.
,
Mar 1 2018
The second comment here seems to be in error. The first issue seems to be JS.
,
Mar 2 2018
,
Mar 2 2018
Thanks for filing the issue! @Reporter: We are able to see "false" as a result, when the given code is pasted in console and hit enter across all Operating systems. As per your comment#0 which says Windows 10 returned "false" while Mac returned "true". But we observed even Mac returning "false" after pasting the code and hitting enter. Attaching the screen shot from Mac OS for reference. Please have a look at the screen shot and let us know if anything missed from our end. Your inputs helps us to triage the issue in a better way.
,
Apr 2 2018
Mac triage: WontFix old issue with no repro. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by woxxom@gmail.com
, Mar 1 2018