René's URL Explorer Experiment


Title: Manually constructed nullish coalescing + OR AST is missing parentheses when printed · Issue #62307 · microsoft/TypeScript · GitHub

Open Graph Title: Manually constructed nullish coalescing + OR AST is missing parentheses when printed · Issue #62307 · microsoft/TypeScript

X Title: Manually constructed nullish coalescing + OR AST is missing parentheses when printed · Issue #62307 · microsoft/TypeScript

Description: 🔎 Search Terms nullish coalescing boolean operation parenthesis 🕗 Version & Regression Information This changed between versions 5.8 and 5.9 Was probably changed by #61372 ⏯ Playground Link https://stackblitz.com/edit/vitejs-vite-a11yrnd...

Open Graph Description: 🔎 Search Terms nullish coalescing boolean operation parenthesis 🕗 Version & Regression Information This changed between versions 5.8 and 5.9 Was probably changed by #61372 ⏯ Playground Link https:/...

X Description: 🔎 Search Terms nullish coalescing boolean operation parenthesis 🕗 Version & Regression Information This changed between versions 5.8 and 5.9 Was probably changed by #61372 ⏯ Playground Link htt...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/62307

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Manually constructed nullish coalescing + OR AST is missing parentheses when printed","articleBody":"### 🔎 Search Terms\n\n* nullish coalescing\n* boolean operation\n* parenthesis\n\n### 🕗 Version & Regression Information\n\n- This changed between versions 5.8 and 5.9\n- Was probably changed by #61372\n\n### ⏯ Playground Link\n\nhttps://stackblitz.com/edit/vitejs-vite-a11yrnds?file=package.json,src%2Fmain.ts\n\n### 💻 Code\n\n```ts\nimport * as ts from 'typescript';\n\nconst printer = ts.createPrinter({ newLine: ts.NewLineKind.LineFeed });\nconst src = ts.createSourceFile('test.ts', '', ts.ScriptTarget.Latest);\n\nconst nullishOrNode = ts.factory.createExpressionStatement(\n  ts.factory.createBinaryExpression(\n    ts.factory.createBinaryExpression(\n      ts.factory.createIdentifier('a'),\n      ts.factory.createToken(ts.SyntaxKind.QuestionQuestionToken),\n      ts.factory.createIdentifier('b')\n    ),\n    ts.factory.createToken(ts.SyntaxKind.BarBarToken),\n    ts.factory.createIdentifier('d')\n  )\n);\n\n// (a ? b : c) || d\nconst nullishOr = printer.printNode(\n  ts.EmitHint.Unspecified,\n  nullishOrNode,\n  src\n);\n```\n\n\n### 🙁 Actual behavior\n\nTo output: `a ?? b || d;`\n\n### 🙂 Expected behavior\n\nTo output: `(a ?? b) || d;`\n\n### Additional information about the issue\n\nThis change as a breaking change by an Angular user after updating to TS 5.9 angular/angular#63287 ","author":{"url":"https://github.com/JeanMeche","@type":"Person","name":"JeanMeche"},"datePublished":"2025-08-20T17:37:20Z","url":"https://github.com/microsoft/TypeScript/issues/62307"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:65eebb6c-48cf-06ae-f7e1-8fe70e21cae0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD97C:215B92:82EA2E:AFBDD3:6B00E14C
html-safe-nonced8218f3b7b8a764615d42ac44d1dd3bcd76cfca23c072dbe12fb6a368eaa23cd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTdDOjIxNUI5Mjo4MkVBMkU6QUZCREQzOjZCMDBFMTRDIiwidmlzaXRvcl9pZCI6Ijc5NzA5MTIzMTMzMTYyNzA0MTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca6bfb183089c90b91d08335a2679d21ea44ecf2dbe266c60b5944d9cb565e107
hovercard-subject-tagissue:3339007124
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/microsoft/TypeScript/62307/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c0598a4e307e83180a4996022c8f7420b1cfd519ff30d4415df8480f76135b33/microsoft/TypeScript/issues/62307
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c0598a4e307e83180a4996022c8f7420b1cfd519ff30d4415df8480f76135b33/microsoft/TypeScript/issues/62307
og:image:alt🔎 Search Terms nullish coalescing boolean operation parenthesis 🕗 Version & Regression Information This changed between versions 5.8 and 5.9 Was probably changed by #61372 ⏯ Playground Link https:/...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJeanMeche
hostnamegithub.com
expected-hostnamegithub.com
None043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
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
release5425dc24e8bd8d6fca9641a12afc984825a43875
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/62307#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F62307
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F62307
Sign uphttps://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=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/62307
Reloadhttps://github.com/microsoft/TypeScript/issues/62307
Reloadhttps://github.com/microsoft/TypeScript/issues/62307
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests309 (309)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/62307
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/62307
#62311https://github.com/microsoft/TypeScript/pull/62311
Manually constructed nullish coalescing + OR AST is missing parentheses when printedhttps://github.com/microsoft/TypeScript/issues/62307#top
#62311https://github.com/microsoft/TypeScript/pull/62311
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Backloghttps://github.com/microsoft/TypeScript/milestone/29
https://github.com/JeanMeche
Matthieu Riegler (JeanMeche)https://github.com/JeanMeche
on Aug 20, 2025https://github.com/microsoft/TypeScript/issues/62307#issue-3339007124
Fixed nullish coalesce operator's precedence #61372https://github.com/microsoft/TypeScript/pull/61372
https://stackblitz.com/edit/vitejs-vite-a11yrnds?file=package.json,src%2Fmain.tshttps://stackblitz.com/edit/vitejs-vite-a11yrnds?file=package.json,src%2Fmain.ts
angular/angular#63287https://github.com/angular/angular/issues/63287
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Help Wantedhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Help%20Wanted%22
on Aug 21, 2025https://github.com/microsoft/TypeScript/issues/62307#event-19270508651
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Backloghttps://github.com/microsoft/TypeScript/milestone/29
on Aug 21, 2025https://github.com/microsoft/TypeScript/issues/62307#event-19270508917
Jake Bailey (jakebailey)https://github.com/jakebailey
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#62311https://github.com/microsoft/TypeScript/pull/62311
on Sep 9, 2025https://github.com/microsoft/TypeScript/issues/62307#event-19594747893
microsofthttps://github.com/microsoft
on Mar 9, 2026https://github.com/microsoft/TypeScript/issues/62307#event-23404298620
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/62307
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/62307
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
BacklogNo due datehttps://github.com/microsoft/TypeScript/milestone/29
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.