Skip to content

Fixed syntactic nullisness semantics for comma expressions - #60402

Merged
Ryan Cavanaugh (RyanCavanaugh) merged 2 commits into
microsoft:mainfrom
Andarist:fix/syntactic-nullishness-semantics-comma
Nov 4, 2024
Merged

Fixed syntactic nullisness semantics for comma expressions#60402
Ryan Cavanaugh (RyanCavanaugh) merged 2 commits into
microsoft:mainfrom
Andarist:fix/syntactic-nullishness-semantics-comma

Conversation

@Andarist

Copy link
Copy Markdown
Contributor

fixes#60401

@typescript-botTypeScript Bot (typescript-bot) added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Nov 3, 2024
@jakebailey

Copy link
Copy Markdown
Member

TypeScript Bot (@typescript-bot) test it

@typescript-bot

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

Copy link
Copy Markdown
Contributor

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

CommandStatusResults
test top400✅ Started✅ Results
user test this✅ Started✅ Results
run dt✅ Started✅ Results
perf test this faster✅ Started👀 Results

@typescript-bot

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.

@typescript-bot

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
MetricbaselineprDeltaBestWorstp-value
Compiler-Unions - node (v18.15.0, x64)
Errors3131~~~p=1.000 n=6
Symbols62,34062,340~~~p=1.000 n=6
Types50,37950,379~~~p=1.000 n=6
Memory used193,518k (± 0.74%)192,808k (± 0.01%)~192,791k192,834kp=0.471 n=6
Parse Time1.31s (± 1.01%)1.32s~~~p=0.073 n=6
Bind Time0.72s0.72s~~~p=1.000 n=6
Check Time9.76s (± 0.43%)9.74s (± 0.59%)~9.68s9.83sp=0.418 n=6
Emit Time2.70s (± 1.38%)2.71s (± 1.15%)~2.65s2.74sp=0.655 n=6
Total Time14.49s (± 0.46%)14.49s (± 0.52%)~14.38s14.60sp=1.000 n=6
angular-1 - node (v18.15.0, x64)
Errors3333~~~p=1.000 n=6
Symbols947,888947,888~~~p=1.000 n=6
Types410,840410,840~~~p=1.000 n=6
Memory used1,224,830k (± 0.00%)1,224,854k (± 0.01%)~1,224,740k1,224,944kp=0.575 n=6
Parse Time8.09s (± 0.97%)8.11s (± 0.98%)~8.01s8.23sp=0.748 n=6
Bind Time2.30s (± 2.00%)2.26s (± 0.86%)~2.24s2.29sp=0.062 n=6
Check Time37.88s (± 0.39%)37.88s (± 0.30%)~37.68s37.98sp=0.520 n=6
Emit Time18.27s (± 0.11%)18.29s (± 0.44%)~18.21s18.40sp=1.000 n=6
Total Time66.54s (± 0.25%)66.54s (± 0.27%)~66.22s66.72sp=0.575 n=6
mui-docs - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols2,495,0042,495,004~~~p=1.000 n=6
Types908,592908,592~~~p=1.000 n=6
Memory used2,307,495k (± 0.00%)2,307,463k (± 0.01%)~2,306,985k2,307,651kp=0.378 n=6
Parse Time11.17s (± 1.05%)11.13s (± 0.91%)~10.95s11.23sp=0.423 n=6
Bind Time2.63s (± 0.88%)2.77s (±12.49%)~2.61s3.48sp=0.468 n=6
Check Time90.64s (± 1.25%)89.73s (± 1.77%)~87.65s92.56sp=0.148 n=6
Emit Time0.35s (± 2.82%)0.70s (±124.74%)~0.32s2.49sp=0.801 n=6
Total Time104.79s (± 1.05%)104.34s (± 2.20%)~102.42s108.90sp=0.128 n=6
self-build-src - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols1,258,5441,258,544~~~p=1.000 n=6
Types266,358266,358~~~p=1.000 n=6
Memory used3,147,874k (± 0.02%)3,147,995k (± 0.03%)~3,147,065k3,149,722kp=1.000 n=6
Parse Time6.62s (± 0.31%)6.62s (± 0.88%)~6.55s6.72sp=1.000 n=6
Bind Time2.33s (± 1.40%)2.35s (± 1.38%)~2.30s2.40sp=0.376 n=6
Check Time43.08s (± 0.44%)43.14s (± 0.27%)~42.96s43.30sp=0.748 n=6
Emit Time3.55s (± 1.58%)3.53s (± 1.79%)~3.46s3.64sp=0.688 n=6
Total Time55.59s (± 0.34%)55.63s (± 0.28%)~55.39s55.82sp=0.810 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols1,258,5441,258,544~~~p=1.000 n=6
Types266,358266,358~~~p=1.000 n=6
Memory used2,647,107k (±10.89%)2,620,016k (±11.21%)~2,499,250k3,220,110kp=0.066 n=6
Parse Time6.63s (± 2.60%)6.63s (± 2.50%)~6.49s6.95sp=1.000 n=6
Bind Time2.18s (± 1.79%)2.15s (± 0.77%)~2.13s2.17sp=0.107 n=6
Check Time43.28s (± 0.47%)43.27s (± 0.24%)~43.10s43.38sp=0.575 n=6
Emit Time3.51s (± 2.03%)3.60s (± 4.68%)~3.45s3.92sp=0.423 n=6
Total Time55.60s (± 0.35%)55.65s (± 0.66%)~55.27s56.12sp=0.810 n=6
self-compiler - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols261,751261,751~~~p=1.000 n=6
Types106,472106,472~~~p=1.000 n=6
Memory used438,836k (± 0.01%)438,834k (± 0.01%)~438,800k438,867kp=1.000 n=6
Parse Time3.54s (± 0.87%)3.53s (± 1.03%)~3.49s3.58sp=0.747 n=6
Bind Time1.32s (± 0.57%)1.31s (± 1.01%)~1.30s1.33sp=0.401 n=6
Check Time18.99s (± 0.30%)18.96s (± 0.59%)~18.79s19.11sp=0.571 n=6
Emit Time1.54s (± 0.67%)1.54s (± 0.96%)~1.52s1.56sp=0.510 n=6
Total Time25.39s (± 0.17%)25.34s (± 0.49%)~25.15s25.48sp=0.630 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors6868~~~p=1.000 n=6
Symbols225,921225,921~~~p=1.000 n=6
Types94,41594,415~~~p=1.000 n=6
Memory used371,104k (± 0.01%)371,099k (± 0.01%)~371,013k371,156kp=1.000 n=6
Parse Time3.60s (± 0.79%)3.58s (± 1.16%)~3.53s3.64sp=0.517 n=6
Bind Time1.95s (± 1.40%)1.95s (± 0.68%)~1.93s1.97sp=0.624 n=6
Check Time20.29s (± 0.42%)20.29s (± 0.47%)~20.15s20.41sp=0.810 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time25.84s (± 0.29%)25.82s (± 0.35%)~25.69s25.96sp=0.467 n=6
vscode - node (v18.15.0, x64)
Errors33~~~p=1.000 n=6
Symbols3,132,1183,132,118~~~p=1.000 n=6
Types1,079,6181,079,618~~~p=1.000 n=6
Memory used3,220,463k (± 0.02%)3,220,906k (± 0.01%)+443k (+ 0.01%)3,220,208k3,221,165kp=0.031 n=6
Parse Time11.58s (± 0.19%)11.60s (± 0.30%)~11.55s11.64sp=0.332 n=6
Bind Time3.71s (± 0.28%)3.70s (± 0.38%)~3.68s3.72sp=0.564 n=6
Check Time72.35s (± 0.17%)72.15s (± 0.22%)~71.96s72.38sp=0.066 n=6
Emit Time22.98s (± 1.37%)22.90s (± 1.14%)~22.67s23.38sp=0.471 n=6
Total Time110.62s (± 0.33%)110.35s (± 0.37%)~109.92s110.99sp=0.230 n=6
webpack - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols288,119288,119~~~p=1.000 n=6
Types116,928116,928~~~p=1.000 n=6
Memory used439,504k (± 0.01%)439,501k (± 0.01%)~439,458k439,560kp=0.810 n=6
Parse Time3.29s (± 0.63%)3.28s (± 0.45%)~3.26s3.30sp=0.803 n=6
Bind Time1.47s (± 0.51%)1.47s (± 0.51%)~1.46s1.48sp=1.000 n=6
Check Time15.53s (± 0.64%)15.52s (± 0.28%)~15.47s15.58sp=0.686 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time20.28s (± 0.40%)20.27s (± 0.24%)~20.22s20.36sp=1.000 n=6
xstate-main - node (v18.15.0, x64)
Errors33~~~p=1.000 n=6
Symbols543,132543,132~~~p=1.000 n=6
Types181,889181,889~~~p=1.000 n=6
Memory used485,562k (± 0.01%)485,607k (± 0.03%)~485,479k485,805kp=1.000 n=6
Parse Time3.37s (± 0.70%)3.37s (± 0.69%)~3.34s3.40sp=0.680 n=6
Bind Time1.17s (± 0.71%)1.18s (± 1.82%)~1.15s1.21sp=0.359 n=6
Check Time19.24s (± 0.30%)19.18s (± 0.31%)~19.10s19.28sp=0.148 n=6
Emit Time0.00s0.00s (±244.70%)~0.00s0.01sp=0.405 n=6
Total Time23.79s (± 0.25%)23.73s (± 0.25%)~23.66s23.84sp=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)
BenchmarkNameIterations
Currentpr6
Baselinebaseline6

Developer Information:

Download Benchmarks

@typescript-bot

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!

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

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!

Daniel Rosenwasser (DanielRosenwasser) pushed a commit that referenced this pull request Dec 17, 2024
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
Co-authored-by: Ryan Cavanaugh <RyanCavanaugh@users.noreply.github.com>
@Andarist
Mateusz Burzyński (Andarist) deleted the fix/syntactic-nullishness-semantics-comma branch December 20, 2024 09:26
@microsoftMicrosoft (microsoft) locked as resolved and limited conversation to collaborators Oct 15, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Uncommitted BugPR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Comma operator seems to confuse nullish coalescing

5 participants

@Andarist@jakebailey@typescript-bot@RyanCavanaugh@sandersn