CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 15:22:22 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/nodejs/node.git
etag: W/"f322b6e815499ca5512a7013cf707cf4"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=%2F2sHlfrRn9Zre9zS1csWoERb0gd8Vkhq9jm1nVbFwJZEHtlv4Q7mBT4i6rmO7Fr6goLUNqftXl2361eYQP16Q%2FmzV9mXRxS%2BOFveDw5RgrSwC7lLSMafP2t1ke69CSkTA5LAgPjBQKOcFVhbkaGP%2BITQidLHa2IfHgi96FvDu7%2BlWjTQUbUokwBmqmdEzq614qh%2BwgsYVJJKHuj0QFv86yKPrQtiyzcyHyRu6WJKge4UstweJJSAAuYRlHftM%2Fq3pV2FN7KdB67%2FrNIspPTyPQ%3D%3D--tZfC4M5wYnhzhwiM--pOYMto3wZGQkdq%2Bfp58TYQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.668538624.1760196141; Path=/; Domain=github.com; Expires=Sun, 11 Oct 2026 15:22:21 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 11 Oct 2026 15:22:21 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: BEC6:547BC:7F66A0:A7A6D7:68EA762D
util: fix numericSeparator with negative fractional numbers · nodejs/node@f660943 · GitHub
Copy file name to clipboardExpand all lines: lib/internal/util/inspect.js
Copy file name to clipboardExpand all lines: test/parallel/test-util-inspect.js
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Commit f660943
util: fix numericSeparator with negative fractional numbers
Fix util.inspect() formatting bug where negative fractional numbers
between -1 and 0 lost their minus sign when numericSeparator was true.
Fixed formatNumber function to preserve sign by using original string
representation. Also corrected test expectations for scientific notation
to not apply numeric separators.
Fixes: #59376
PR-URL: #59379
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 658c31d commit f660943Copy full SHA for f660943
File tree
Expand file treeCollapse file tree
2 files changed
+35
-9
lines changedFilter options
- lib/internal/util
- test/parallel
Expand file treeCollapse file tree
2 files changed
+35
-9
lines changedCollapse file: lib/internal/util/inspect.js
lib/internal/util/inspect.js
Copy file name to clipboardExpand all lines: lib/internal/util/inspect.js+14-9Lines changed: 14 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1851 | 1851 |
| |
1852 | 1852 |
| |
1853 | 1853 |
| |
| 1854 | + | |
| 1855 | + | |
1854 | 1856 |
| |
1855 |
| - | |
| 1857 | + | |
1856 | 1858 |
| |
1857 |
| - | |
1858 |
| - | |
| 1859 | + | |
| 1860 | + | |
1859 | 1861 |
| |
1860 |
| - | |
| 1862 | + | |
1861 | 1863 |
| |
1862 | 1864 |
| |
1863 |
| - | |
| 1865 | + | |
1864 | 1866 |
| |
| 1867 | + | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
1865 | 1872 |
| |
1866 |
| - | |
| 1873 | + | |
1867 | 1874 |
| |
1868 |
| - | |
1869 |
| - | |
1870 |
| - | |
| 1875 | + | |
1871 | 1876 |
| |
1872 | 1877 |
| |
1873 | 1878 |
| |
|
Collapse file: test/parallel/test-util-inspect.js
test/parallel/test-util-inspect.js
Copy file name to clipboardExpand all lines: test/parallel/test-util-inspect.js+21Lines changed: 21 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3484 | 3484 |
| |
3485 | 3485 |
| |
3486 | 3486 |
| |
| 3487 | + | |
| 3488 | + | |
| 3489 | + | |
| 3490 | + | |
| 3491 | + | |
| 3492 | + | |
| 3493 | + | |
| 3494 | + | |
| 3495 | + | |
| 3496 | + | |
| 3497 | + | |
| 3498 | + | |
| 3499 | + | |
| 3500 | + | |
| 3501 | + | |
| 3502 | + | |
| 3503 | + | |
| 3504 | + | |
| 3505 | + | |
| 3506 | + | |
| 3507 | + | |
3487 | 3508 |
| |
3488 | 3509 |
| |
3489 | 3510 |
| |
|
You can’t perform that action at this time.
0 commit comments