Closed
Description
Version
19.0.0
Platform
Linux 6.0.2-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Sat, 15 Oct 2022 14:00:51 +0000 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
node
> new Date(new Date().toLocaleString('en-US'))
Invalid Date
> const s = new Date().toLocaleString('en-US')
undefined
> s.at(-3)
' '
> s.at(-3).charCodeAt()
8239
> ' '.charCodeAt()
32
>
How often does it reproduce? Is there a required condition?
Stability
What is the expected behavior?
No response
What do you see instead?
Error Date.toLocaleString(): NARROW NO-BREAK SPACE (U+202f) without last whitespace
Additional information
Thanks for node) It`s cool)