GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Port `getSyntacticNullishnessSemantics` changes by Andarist · Pull Request #1040 · microsoft/typescript-go

This repository was archived by the owner on Sep 1, 2026. It is now read-only.

Conversation

@Andarist

@Andarist Mateusz Burzyński (Andarist) commented Jun 4, 2025

Copy link
Copy Markdown
Contributor

ports microsoft/TypeScript#60440
ports microsoft/TypeScript#60616
ports microsoft/TypeScript#60402

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Andarist
Port getSyntacticNullishnessSemantics changes
203a7ca
Copilot AI review requested due to automatic review settings June 4, 2025 11:44
Copilot AI reviewed Jun 4, 2025
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Ports updates from TypeScript PRs to align nullish-coalescing predicate semantics in the Go checker and its test baselines.

  • Removes obsolete nullishness errors from the predicateSemantics baselines.
  • Adds TaggedTemplateExpression and MetaProperty to always-truthy cases.
  • Introduces handling for the comma operator by recursing into its right operand.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
testdata/baselines/reference/.../predicateSemantics.errors.txt.diff Removed extra ?? unreachable-operand error entries.
testdata/baselines/reference/.../predicateSemantics.errors.txt Updated expected error count and pruned removed entries.
internal/checker/checker.go Added TaggedTemplateExpression, MetaProperty, and a comma-operator case.
Comments suppressed due to low confidence (1)

internal/checker/checker.go:12287

  • Matching on ast.KindCommaToken will never occur because node.Kind represents expression node kinds (e.g., ast.KindBinaryExpression), not operator tokens. Move comma handling into the ast.KindBinaryExpression case by checking node.AsBinaryExpression().OperatorToken.Kind == ast.KindCommaToken.
case ast.KindCommaToken:

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
jakebailey
Jake Bailey (jakebailey) approved these changes Jun 4, 2025
View reviewed changes
@jakebailey
Jake Bailey (jakebailey) added this pull request to the merge queue Jun 4, 2025
Merged via the queue into microsoft:main with commit af200c6 Jun 4, 2025
Jake Bailey (jakebailey) pushed a commit to jakebailey/TypeScript that referenced this pull request Aug 13, 2026
@Andarist
Port getSyntacticNullishnessSemantics changes (microsoft/typescript…
9caea89
…-go#1040)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
+1 more reviewer
@jakebailey Jake Bailey (jakebailey) jakebailey approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@Andarist @jakebailey
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.