René's URL Explorer Experiment


Title: `RangeError: Invalid string length` when logging a particular Error with `console.error` · Issue #64136 · nodejs/node · GitHub

Open Graph Title: `RangeError: Invalid string length` when logging a particular Error with `console.error` · Issue #64136 · nodejs/node

X Title: `RangeError: Invalid string length` when logging a particular Error with `console.error` · Issue #64136 · nodejs/node

Description: Version v26.3.1 Platform Darwin HQX-VGM7H2WVFG 25.5.0 Darwin Kernel Version 25.5.0: Mon Apr 27 20:41:06 PDT 2026; root:xnu-12377.121.6~2/RELEASE_ARM64_T6030 arm64 arm Darwin Subsystem util What steps will reproduce the bug? npm install @...

Open Graph Description: Version v26.3.1 Platform Darwin HQX-VGM7H2WVFG 25.5.0 Darwin Kernel Version 25.5.0: Mon Apr 27 20:41:06 PDT 2026; root:xnu-12377.121.6~2/RELEASE_ARM64_T6030 arm64 arm Darwin Subsystem util What ste...

X Description: Version v26.3.1 Platform Darwin HQX-VGM7H2WVFG 25.5.0 Darwin Kernel Version 25.5.0: Mon Apr 27 20:41:06 PDT 2026; root:xnu-12377.121.6~2/RELEASE_ARM64_T6030 arm64 arm Darwin Subsystem util What ste...

Opengraph URL: https://github.com/nodejs/node/issues/64136

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`RangeError: Invalid string length` when logging a particular Error with `console.error`","articleBody":"### Version\n\nv26.3.1\n\n### Platform\n\n```text\nDarwin HQX-VGM7H2WVFG 25.5.0 Darwin Kernel Version 25.5.0: Mon Apr 27 20:41:06 PDT 2026; root:xnu-12377.121.6~2/RELEASE_ARM64_T6030 arm64 arm Darwin\n```\n\n### Subsystem\n\nutil\n\n### What steps will reproduce the bug?\n\n1. `npm install @formatjs/icu-messageformat-parser@3.5.11`.\n2. Save this script:\n```javascript\ntry {\n  require('@formatjs/icu-messageformat-parser').parse(\n    `{0, plural, one {#  ''אהבתי'''} two {# ''אהבתי'''} other {# ''אהבתי'''} }`,\n    { requiresOtherClause: true, ignoreTag: true, shouldParseSkeletons: false },\n  );\n} catch (err) {\n  console.error(err);\n}\n```\n3. Run it. Observe error in the title:\n```\nλ node foo.js\nnode:internal/util/inspect:1885\n    tempLine += ctx.stylize(nodeModule, 'module');\n                    ^\n\nRangeError: Invalid string length\n    at markNodeModules (node:internal/util/inspect:1885:21)\n    at formatError (node:internal/util/inspect:2019:18)\n    at formatRaw (node:internal/util/inspect:1362:14)\n    at formatValue (node:internal/util/inspect:1195:19)\n    at inspect (node:internal/util/inspect:409:10)\n    at formatWithOptionsInternal (node:internal/util/inspect:2917:40)\n    at formatWithOptions (node:internal/util/inspect:2779:10)\n    at console.value (node:internal/console/constructor:377:14)\n    at console.error (node:internal/console/constructor:444:61)\n    at Object.\u003canonymous\u003e (/Users/ikerins/web/foo.js:7:11)\n\nNode.js v26.3.1\n```\n\nI was not able to reduce the reproduction to not use the library, e.g. by manually constructing a SyntaxError with the same properties that it is producing: \nhttps://github.com/formatjs/formatjs/blob/2093ca683a08dd8ae0226085329e9811eca38791/packages/icu-messageformat-parser/index.ts#L49-L56\n\nI'm not sure why that doesn't work. Sorry.\n\n### How often does it reproduce? Is there a required condition?\n\nAlways reproduces with the above script. I could not narrow it down beyond that.\n\n### What is the expected behavior? Why is that the expected behavior?\n\n`console.error` does not throw.\n\n### What do you see instead?\n\n```\nλ node foo.js\nnode:internal/util/inspect:1885\n    tempLine += ctx.stylize(nodeModule, 'module');\n                    ^\n\nRangeError: Invalid string length\n    at markNodeModules (node:internal/util/inspect:1885:21)\n    at formatError (node:internal/util/inspect:2019:18)\n    at formatRaw (node:internal/util/inspect:1362:14)\n    at formatValue (node:internal/util/inspect:1195:19)\n    at inspect (node:internal/util/inspect:409:10)\n    at formatWithOptionsInternal (node:internal/util/inspect:2917:40)\n    at formatWithOptions (node:internal/util/inspect:2779:10)\n    at console.value (node:internal/console/constructor:377:14)\n    at console.error (node:internal/console/constructor:444:61)\n    at Object.\u003canonymous\u003e (/Users/ikerins/web/foo.js:7:11)\n\nNode.js v26.3.1\n```\n\n### Additional information\n\nThe SyntaxError being logged _looks_ like this, but just constructing one with these properties directly does not reproduce, for reasons unknown. This:\n```\n  console.log(err.message);\n  console.log(err.stack);\n  console.log(err.location);\n  console.log(err.originalMessage);\n```\nProduces:\n```\nEXPECT_ARGUMENT_CLOSING_BRACE\nSyntaxError: EXPECT_ARGUMENT_CLOSING_BRACE\n    at Module.parse (/Users/ikerins/web/node_modules/@formatjs/index.ts:50:19)\n    at Object.\u003canonymous\u003e (/Users/ikerins/web/foo.js:2:49)\n    at Module._compile (node:internal/modules/cjs/loader:1873:14)\n    at Object..js (node:internal/modules/cjs/loader:2013:10)\n    at Module.load (node:internal/modules/cjs/loader:1596:32)\n    at Module._load (node:internal/modules/cjs/loader:1398:12)\n    at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)\n    at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)\n    at node:internal/main/run_main_module:33:47\n{\n  start: { offset: 57, line: 1, column: 58 },\n  end: { offset: 73, line: 1, column: 74 }\n}\n{0, plural, one {#  ''אהבתי'''} two {# ''אהבתי'''} other {# ''אהבתי'''} }\n```\n\nAlso, the offending `console.error` invocation hangs for a pretty long time before throwing. About 5-7s.","author":{"url":"https://github.com/isker","@type":"Person","name":"isker"},"datePublished":"2026-06-25T20:38:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/64136/node/issues/64136"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f22b741b-33b4-db27-39c8-07195d8f5d81
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA75A:1E92:898833:C183A6:6A4F233B
html-safe-nonce26eb1fee621f56316324ae4d8e7d98003aba9cbc5802ec4f91c30afc0196609f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzVBOjFFOTI6ODk4ODMzOkMxODNBNjo2QTRGMjMzQiIsInZpc2l0b3JfaWQiOiI3NTk2MTAyNzY2NjI5NDMwMDc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc7a3498ab0bde38e61ff368f5b92b13eb4edab50bd9325f2d9f220033fd757bd
hovercard-subject-tagissue:4747232127
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/64136/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2784e331e48b5e6807a66148fb3c502668207a11b2f1305dc730cd280cfd3fd9/nodejs/node/issues/64136
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2784e331e48b5e6807a66148fb3c502668207a11b2f1305dc730cd280cfd3fd9/nodejs/node/issues/64136
og:image:altVersion v26.3.1 Platform Darwin HQX-VGM7H2WVFG 25.5.0 Darwin Kernel Version 25.5.0: Mon Apr 27 20:41:06 PDT 2026; root:xnu-12377.121.6~2/RELEASE_ARM64_T6030 arm64 arm Darwin Subsystem util What ste...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameisker
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b8f23afb982271f1b22258a94aede67a6b77760
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/issues/64136#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F64136
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F64136
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/64136
Reloadhttps://github.com/nodejs/node/issues/64136
Reloadhttps://github.com/nodejs/node/issues/64136
Please reload this pagehttps://github.com/nodejs/node/issues/64136
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/issues/64136
Notifications https://github.com/login?return_to=%2Fnodejs%2Fnode
Fork 36k https://github.com/login?return_to=%2Fnodejs%2Fnode
Star 118k https://github.com/login?return_to=%2Fnodejs%2Fnode
Code https://github.com/nodejs/node
Issues 1.3k https://github.com/nodejs/node/issues
Pull requests 969 https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality 0 https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Code https://github.com/nodejs/node
Issues https://github.com/nodejs/node/issues
Pull requests https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
RangeError: Invalid string length when logging a particular Error with console.errorhttps://github.com/nodejs/node/issues/64136#top
https://github.com/isker
iskerhttps://github.com/isker
on Jun 25, 2026https://github.com/nodejs/node/issues/64136#issue-4747232127
https://github.com/formatjs/formatjs/blob/2093ca683a08dd8ae0226085329e9811eca38791/packages/icu-messageformat-parser/index.ts#L49-L56https://github.com/formatjs/formatjs/blob/2093ca683a08dd8ae0226085329e9811eca38791/packages/icu-messageformat-parser/index.ts#L49-L56
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.