jerryscript
jerryscript copied to clipboard
wrong output in Date.toLocaleDateString
jerry> new Date(2022, 5, 2).toLocaleDateString()
2022-06-01
on chrome:
> new Date(2022, 5, 2).toLocaleDateString()
'6/2/2022'
should be 6-2.
In JerryScript toLocaleDateString is simply an alias to toDateString. Locale specific data usually requires a lot of space.