Skip to content

Error Date.toLocaleString() in node 19.0.0 #45171

Closed
@dmitriym09

Description

@dmitriym09

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugs.i18n-apiIssues and PRs related to the i18n implementation.v8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions