Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Error Date.toLocaleString() in node 19.0.0 #45171

Copy link
Copy link
@dmitriym09

Description

@dmitriym09
Issue body actions

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)

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.