-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.i18n-apiIssues and PRs related to the i18n implementation.Issues and PRs related to the i18n implementation.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.
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)
wongjiahau, g-otn, telmotrooper and electrovir
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.i18n-apiIssues and PRs related to the i18n implementation.Issues and PRs related to the i18n implementation.v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.