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 — Fixed syntactic nullisness semantics for comma expressions by Andarist · Pull Request #60402 · microsoft/TypeScript

Conversation

@Andarist

@Andarist Mateusz Burzyński (Andarist) commented Nov 3, 2024

Copy link
Copy Markdown
Contributor

fixes #60401

Sorry, something went wrong.

Uh oh!

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

All reactions
@Andarist
Fixed syntactic nullisness semantics for comma expressions
10129a4
@typescript-bot TypeScript Bot (typescript-bot) added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Nov 3, 2024
@Andarist
add extra test case
6d61888
@DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser) requested a review from Ryan Cavanaugh (RyanCavanaugh) November 4, 2024 18:55
jakebailey
Jake Bailey (jakebailey) approved these changes Nov 4, 2024
View reviewed changes
@jakebailey

Jake Bailey (jakebailey) commented Nov 4, 2024

Copy link
Copy Markdown
Member

TypeScript Bot (@typescript-bot) test it

typescript-bot reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@typescript-bot

TypeScript Bot (typescript-bot) commented Nov 4, 2024 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Starting jobs; this comment will be updated as builds start and complete.

Command Status Results
test top400 ✅ Started ✅ Results
user test this ✅ Started ✅ Results
run dt ✅ Started ✅ Results
perf test this faster ✅ Started 👀 Results
All reactions

Sorry, something went wrong.

Uh oh!

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

RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh) approved these changes Nov 4, 2024
View reviewed changes
@typescript-bot

TypeScript Bot (typescript-bot) commented Nov 4, 2024

Copy link
Copy Markdown
Contributor

Hey Jake Bailey (@jakebailey), the results of running the DT tests are ready.

Everything looks the same!

You can check the log here.

All reactions

Sorry, something went wrong.

Uh oh!

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

@typescript-bot

TypeScript Bot (typescript-bot) commented Nov 4, 2024

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey)
The results of the perf run you requested are in!

Here they are:

tsc

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Compiler-Unions - node (v18.15.0, x64)
Errors 31 31 ~ ~ ~ p=1.000 n=6
Symbols 62,340 62,340 ~ ~ ~ p=1.000 n=6
Types 50,379 50,379 ~ ~ ~ p=1.000 n=6
Memory used 193,518k (± 0.74%) 192,808k (± 0.01%) ~ 192,791k 192,834k p=0.471 n=6
Parse Time 1.31s (± 1.01%) 1.32s ~ ~ ~ p=0.073 n=6
Bind Time 0.72s 0.72s ~ ~ ~ p=1.000 n=6
Check Time 9.76s (± 0.43%) 9.74s (± 0.59%) ~ 9.68s 9.83s p=0.418 n=6
Emit Time 2.70s (± 1.38%) 2.71s (± 1.15%) ~ 2.65s 2.74s p=0.655 n=6
Total Time 14.49s (± 0.46%) 14.49s (± 0.52%) ~ 14.38s 14.60s p=1.000 n=6
angular-1 - node (v18.15.0, x64)
Errors 33 33 ~ ~ ~ p=1.000 n=6
Symbols 947,888 947,888 ~ ~ ~ p=1.000 n=6
Types 410,840 410,840 ~ ~ ~ p=1.000 n=6
Memory used 1,224,830k (± 0.00%) 1,224,854k (± 0.01%) ~ 1,224,740k 1,224,944k p=0.575 n=6
Parse Time 8.09s (± 0.97%) 8.11s (± 0.98%) ~ 8.01s 8.23s p=0.748 n=6
Bind Time 2.30s (± 2.00%) 2.26s (± 0.86%) ~ 2.24s 2.29s p=0.062 n=6
Check Time 37.88s (± 0.39%) 37.88s (± 0.30%) ~ 37.68s 37.98s p=0.520 n=6
Emit Time 18.27s (± 0.11%) 18.29s (± 0.44%) ~ 18.21s 18.40s p=1.000 n=6
Total Time 66.54s (± 0.25%) 66.54s (± 0.27%) ~ 66.22s 66.72s p=0.575 n=6
mui-docs - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 2,495,004 2,495,004 ~ ~ ~ p=1.000 n=6
Types 908,592 908,592 ~ ~ ~ p=1.000 n=6
Memory used 2,307,495k (± 0.00%) 2,307,463k (± 0.01%) ~ 2,306,985k 2,307,651k p=0.378 n=6
Parse Time 11.17s (± 1.05%) 11.13s (± 0.91%) ~ 10.95s 11.23s p=0.423 n=6
Bind Time 2.63s (± 0.88%) 2.77s (±12.49%) ~ 2.61s 3.48s p=0.468 n=6
Check Time 90.64s (± 1.25%) 89.73s (± 1.77%) ~ 87.65s 92.56s p=0.148 n=6
Emit Time 0.35s (± 2.82%) 0.70s (±124.74%) ~ 0.32s 2.49s p=0.801 n=6
Total Time 104.79s (± 1.05%) 104.34s (± 2.20%) ~ 102.42s 108.90s p=0.128 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,258,544 1,258,544 ~ ~ ~ p=1.000 n=6
Types 266,358 266,358 ~ ~ ~ p=1.000 n=6
Memory used 3,147,874k (± 0.02%) 3,147,995k (± 0.03%) ~ 3,147,065k 3,149,722k p=1.000 n=6
Parse Time 6.62s (± 0.31%) 6.62s (± 0.88%) ~ 6.55s 6.72s p=1.000 n=6
Bind Time 2.33s (± 1.40%) 2.35s (± 1.38%) ~ 2.30s 2.40s p=0.376 n=6
Check Time 43.08s (± 0.44%) 43.14s (± 0.27%) ~ 42.96s 43.30s p=0.748 n=6
Emit Time 3.55s (± 1.58%) 3.53s (± 1.79%) ~ 3.46s 3.64s p=0.688 n=6
Total Time 55.59s (± 0.34%) 55.63s (± 0.28%) ~ 55.39s 55.82s p=0.810 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,258,544 1,258,544 ~ ~ ~ p=1.000 n=6
Types 266,358 266,358 ~ ~ ~ p=1.000 n=6
Memory used 2,647,107k (±10.89%) 2,620,016k (±11.21%) ~ 2,499,250k 3,220,110k p=0.066 n=6
Parse Time 6.63s (± 2.60%) 6.63s (± 2.50%) ~ 6.49s 6.95s p=1.000 n=6
Bind Time 2.18s (± 1.79%) 2.15s (± 0.77%) ~ 2.13s 2.17s p=0.107 n=6
Check Time 43.28s (± 0.47%) 43.27s (± 0.24%) ~ 43.10s 43.38s p=0.575 n=6
Emit Time 3.51s (± 2.03%) 3.60s (± 4.68%) ~ 3.45s 3.92s p=0.423 n=6
Total Time 55.60s (± 0.35%) 55.65s (± 0.66%) ~ 55.27s 56.12s p=0.810 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 261,751 261,751 ~ ~ ~ p=1.000 n=6
Types 106,472 106,472 ~ ~ ~ p=1.000 n=6
Memory used 438,836k (± 0.01%) 438,834k (± 0.01%) ~ 438,800k 438,867k p=1.000 n=6
Parse Time 3.54s (± 0.87%) 3.53s (± 1.03%) ~ 3.49s 3.58s p=0.747 n=6
Bind Time 1.32s (± 0.57%) 1.31s (± 1.01%) ~ 1.30s 1.33s p=0.401 n=6
Check Time 18.99s (± 0.30%) 18.96s (± 0.59%) ~ 18.79s 19.11s p=0.571 n=6
Emit Time 1.54s (± 0.67%) 1.54s (± 0.96%) ~ 1.52s 1.56s p=0.510 n=6
Total Time 25.39s (± 0.17%) 25.34s (± 0.49%) ~ 25.15s 25.48s p=0.630 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 68 68 ~ ~ ~ p=1.000 n=6
Symbols 225,921 225,921 ~ ~ ~ p=1.000 n=6
Types 94,415 94,415 ~ ~ ~ p=1.000 n=6
Memory used 371,104k (± 0.01%) 371,099k (± 0.01%) ~ 371,013k 371,156k p=1.000 n=6
Parse Time 3.60s (± 0.79%) 3.58s (± 1.16%) ~ 3.53s 3.64s p=0.517 n=6
Bind Time 1.95s (± 1.40%) 1.95s (± 0.68%) ~ 1.93s 1.97s p=0.624 n=6
Check Time 20.29s (± 0.42%) 20.29s (± 0.47%) ~ 20.15s 20.41s p=0.810 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 25.84s (± 0.29%) 25.82s (± 0.35%) ~ 25.69s 25.96s p=0.467 n=6
vscode - node (v18.15.0, x64)
Errors 3 3 ~ ~ ~ p=1.000 n=6
Symbols 3,132,118 3,132,118 ~ ~ ~ p=1.000 n=6
Types 1,079,618 1,079,618 ~ ~ ~ p=1.000 n=6
Memory used 3,220,463k (± 0.02%) 3,220,906k (± 0.01%) +443k (+ 0.01%) 3,220,208k 3,221,165k p=0.031 n=6
Parse Time 11.58s (± 0.19%) 11.60s (± 0.30%) ~ 11.55s 11.64s p=0.332 n=6
Bind Time 3.71s (± 0.28%) 3.70s (± 0.38%) ~ 3.68s 3.72s p=0.564 n=6
Check Time 72.35s (± 0.17%) 72.15s (± 0.22%) ~ 71.96s 72.38s p=0.066 n=6
Emit Time 22.98s (± 1.37%) 22.90s (± 1.14%) ~ 22.67s 23.38s p=0.471 n=6
Total Time 110.62s (± 0.33%) 110.35s (± 0.37%) ~ 109.92s 110.99s p=0.230 n=6
webpack - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 288,119 288,119 ~ ~ ~ p=1.000 n=6
Types 116,928 116,928 ~ ~ ~ p=1.000 n=6
Memory used 439,504k (± 0.01%) 439,501k (± 0.01%) ~ 439,458k 439,560k p=0.810 n=6
Parse Time 3.29s (± 0.63%) 3.28s (± 0.45%) ~ 3.26s 3.30s p=0.803 n=6
Bind Time 1.47s (± 0.51%) 1.47s (± 0.51%) ~ 1.46s 1.48s p=1.000 n=6
Check Time 15.53s (± 0.64%) 15.52s (± 0.28%) ~ 15.47s 15.58s p=0.686 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 20.28s (± 0.40%) 20.27s (± 0.24%) ~ 20.22s 20.36s p=1.000 n=6
xstate-main - node (v18.15.0, x64)
Errors 3 3 ~ ~ ~ p=1.000 n=6
Symbols 543,132 543,132 ~ ~ ~ p=1.000 n=6
Types 181,889 181,889 ~ ~ ~ p=1.000 n=6
Memory used 485,562k (± 0.01%) 485,607k (± 0.03%) ~ 485,479k 485,805k p=1.000 n=6
Parse Time 3.37s (± 0.70%) 3.37s (± 0.69%) ~ 3.34s 3.40s p=0.680 n=6
Bind Time 1.17s (± 0.71%) 1.18s (± 1.82%) ~ 1.15s 1.21s p=0.359 n=6
Check Time 19.24s (± 0.30%) 19.18s (± 0.31%) ~ 19.10s 19.28s p=0.148 n=6
Emit Time 0.00s 0.00s (±244.70%) ~ 0.00s 0.01s p=0.405 n=6
Total Time 23.79s (± 0.25%) 23.73s (± 0.25%) ~ 23.66s 23.84s p=0.106 n=6
System info unknown
Hosts
  • node (v18.15.0, x64)
Scenarios
  • Compiler-Unions - node (v18.15.0, x64)
  • angular-1 - node (v18.15.0, x64)
  • mui-docs - node (v18.15.0, x64)
  • self-build-src - node (v18.15.0, x64)
  • self-build-src-public-api - node (v18.15.0, x64)
  • self-compiler - node (v18.15.0, x64)
  • ts-pre-modules - node (v18.15.0, x64)
  • vscode - node (v18.15.0, x64)
  • webpack - node (v18.15.0, x64)
  • xstate-main - node (v18.15.0, x64)
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

Developer Information:

Download Benchmarks

All reactions

Sorry, something went wrong.

Uh oh!

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

@typescript-bot

TypeScript Bot (typescript-bot) commented Nov 4, 2024

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey) Here are the results of running the user tests with tsc comparing main and refs/pull/60402/merge:

Everything looks good!

All reactions

Sorry, something went wrong.

Uh oh!

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

@RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh) merged commit c09e2ab into microsoft:main Nov 4, 2024
@typescript-bot

TypeScript Bot (typescript-bot) commented Nov 4, 2024

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey) Here are the results of running the top 400 repos with tsc comparing main and refs/pull/60402/merge:

Everything looks good!

All reactions

Sorry, something went wrong.

Uh oh!

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

@jakebailey Jake Bailey (jakebailey) mentioned this pull request Dec 16, 2024
Fixed syntactic nullisness semantics for tagged template expressions #60616
Merged
Jake Bailey (jakebailey) pushed a commit to jakebailey/TypeScript that referenced this pull request Dec 16, 2024
@Andarist @jakebailey
Fixed syntactic nullisness semantics for comma expressions (microsoft…
cbda51a
…#60402)
Daniel Rosenwasser (DanielRosenwasser) pushed a commit that referenced this pull request Dec 17, 2024
@jakebailey @Andarist @RyanCavanaugh
Cherry-pick #60402, #60440, #60616 into release-5.7 (#60777)
e844dc3
Co-authored-by: Mateusz Burzyński <[email protected]>
Co-authored-by: Ryan Cavanaugh <[email protected]>
@Andarist
Mateusz Burzyński (Andarist) deleted the fix/syntactic-nullishness-semantics-comma branch December 20, 2024 09:26
@Andarist Mateusz Burzyński (Andarist) mentioned this pull request Dec 20, 2024
Compute more precise syntactic truthy semantics for comma expressions #60830
Closed
@sandersn Nathan Shively-Sanders (sandersn) removed this from PR Backlog Apr 22, 2025
@Andarist Mateusz Burzyński (Andarist) mentioned this pull request Jun 4, 2025
Port getSyntacticNullishnessSemantics changes microsoft/typescript-go#1040
Merged
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@jakebailey Jake Bailey (jakebailey) jakebailey approved these changes
@RyanCavanaugh Ryan Cavanaugh (RyanCavanaugh) RyanCavanaugh approved these changes

Uh oh!

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

Assignees

No one assigned

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Comma operator seems to confuse nullish coalescing

Uh oh!

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

4 participants

@Andarist @jakebailey @typescript-bot @RyanCavanaugh
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.