toLocaleTimeString
regression in v18
#46571
Labels
dont-land-on-v18.x
PRs that should not land on the v18.x-staging branch and should not be released in v18.x.
duplicate
Issues and PRs that are duplicates of other issues or PRs.
Version
v18.14.0
Platform
Darwin MacBook-Pro.local 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000 arm64
Subsystem
No response
What steps will reproduce the bug?
node
new Date().toLocaleTimeString('en').charCodeAt(7)
to see the char code of the space8239
How often does it reproduce? Is there a required condition?
100% of runs
What is the expected behavior?
The code of the space here should supposably be
32
, at least that's what I see when running in Chrome 109.0.5414.119 and Node v16.19.0.What do you see instead?
The code of the space is -
8239
Additional information
This causes issues when running hydration in NextJS.
The text was updated successfully, but these errors were encountered: