Skip to content

fix(55168): Computed properties do not respect setter signatures - #55178

Merged
Jake Bailey (jakebailey) merged 4 commits into
microsoft:mainfrom
a-tarasyuk:fix/55168
Oct 22, 2024
Merged

fix(55168): Computed properties do not respect setter signatures#55178
Jake Bailey (jakebailey) merged 4 commits into
microsoft:mainfrom
a-tarasyuk:fix/55168

Conversation

@a-tarasyuk

Copy link
Copy Markdown
Contributor

Fixes#55168

@jakebailey

Copy link
Copy Markdown
Member

TypeScript Bot (@typescript-bot) test it

@typescript-bot

TypeScript Bot (typescript-bot) commented Oct 8, 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) Here are the results of running the user tests with tsc comparing main and refs/pull/55178/merge:

Everything looks good!

@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 used195,772k (± 0.75%)195,201k (± 0.99%)~192,443k196,546kp=0.810 n=6
Parse Time1.99s (± 0.99%)2.00s (± 0.52%)~1.98s2.01sp=0.250 n=6
Bind Time1.09s (± 1.38%)1.08s (± 1.52%)~1.06s1.10sp=0.324 n=6
Check Time14.54s (± 0.23%)14.59s (± 0.33%)~14.54s14.67sp=0.053 n=6
Emit Time4.29s (± 4.13%)4.14s (± 3.39%)~4.03s4.41sp=0.093 n=6
Total Time21.90s (± 1.03%)21.81s (± 0.67%)~21.62s22.06sp=0.521 n=6
angular-1 - node (v18.15.0, x64)
Errors3333~~~p=1.000 n=6
Symbols947,886947,886~~~p=1.000 n=6
Types410,840410,840~~~p=1.000 n=6
Memory used1,224,808k (± 0.00%)1,224,807k (± 0.00%)~1,224,754k1,224,906kp=0.689 n=6
Parse Time8.03s (± 0.95%)8.09s (± 1.04%)~7.97s8.19sp=0.229 n=6
Bind Time2.26s (± 0.46%)2.27s (± 0.87%)~2.24s2.30sp=1.000 n=6
Check Time37.97s (± 0.54%)37.85s (± 0.54%)~37.61s38.11sp=0.378 n=6
Emit Time18.25s (± 0.62%)18.18s (± 0.37%)~18.12s18.30sp=0.192 n=6
Total Time66.51s (± 0.20%)66.38s (± 0.44%)~66.04s66.72sp=0.469 n=6
mui-docs - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols2,529,6782,529,678~~~p=1.000 n=6
Types916,161916,161~~~p=1.000 n=6
Memory used2,341,183k (± 0.01%)2,341,220k (± 0.00%)~2,341,064k2,341,342kp=0.810 n=6
Parse Time13.77s (± 0.56%)13.81s (± 0.94%)~13.56s13.93sp=0.261 n=6
Bind Time3.21s (± 1.17%)3.23s (± 0.51%)~3.21s3.25sp=0.686 n=6
Check Time113.30s (± 2.36%)112.30s (± 2.35%)~110.39s117.50sp=0.378 n=6
Emit Time0.42s (± 2.33%)0.42s (± 2.44%)~0.41s0.44sp=0.933 n=6
Total Time130.71s (± 2.02%)129.76s (± 1.94%)~127.90s134.73sp=0.471 n=6
self-build-src - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols1,258,1091,258,109~~~p=1.000 n=6
Types266,266266,266~~~p=1.000 n=6
Memory used3,026,615k (± 9.77%)3,146,671k (± 0.05%)~3,145,349k3,149,506kp=0.689 n=6
Parse Time6.58s (± 0.93%)6.59s (± 0.70%)~6.52s6.65sp=1.000 n=6
Bind Time2.37s (± 0.87%)2.32s (± 1.58%)~2.28s2.38sp=0.052 n=6
Check Time42.93s (± 0.17%)43.01s (± 0.10%)~42.94s43.05sp=0.066 n=6
Emit Time3.53s (± 2.64%)3.53s (± 1.81%)~3.44s3.60sp=0.936 n=6
Total Time55.41s (± 0.19%)55.46s (± 0.18%)~55.35s55.57sp=0.298 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols1,258,1091,258,109~~~p=1.000 n=6
Types266,266266,266~~~p=1.000 n=6
Memory used2,645,463k (±10.85%)2,646,376k (±10.84%)~2,499,012k3,218,833kp=0.471 n=6
Parse Time8.24s (± 2.38%)8.21s (± 2.67%)~8.07s8.64sp=0.423 n=6
Bind Time2.64s (± 1.21%)2.67s (± 0.80%)~2.65s2.71sp=0.127 n=6
Check Time53.48s (± 0.94%)53.28s (± 0.47%)~52.98s53.57sp=0.471 n=6
Emit Time4.40s (± 3.87%)4.28s (± 1.96%)~4.18s4.41sp=0.261 n=6
Total Time68.78s (± 0.87%)68.44s (± 0.50%)~67.92s68.73sp=0.378 n=6
self-compiler - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols261,786261,786~~~p=1.000 n=6
Types106,508106,508~~~p=1.000 n=6
Memory used438,774k (± 0.01%)438,767k (± 0.01%)~438,671k438,843kp=1.000 n=6
Parse Time3.55s (± 0.34%)3.55s (± 0.92%)~3.51s3.60sp=0.871 n=6
Bind Time1.31s (± 0.62%)1.32s (± 0.62%)~1.31s1.33sp=0.666 n=6
Check Time18.94s (± 0.24%)18.93s (± 0.45%)~18.85s19.08sp=0.470 n=6
Emit Time1.53s (± 1.07%)1.53s (± 0.89%)~1.51s1.55sp=0.512 n=6
Total Time25.33s (± 0.21%)25.33s (± 0.38%)~25.19s25.48sp=1.000 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors6868~~~p=1.000 n=6
Symbols225,919225,919~~~p=1.000 n=6
Types94,41594,415~~~p=1.000 n=6
Memory used371,084k (± 0.01%)371,065k (± 0.01%)~371,002k371,130kp=0.575 n=6
Parse Time2.91s (± 1.24%)2.90s (± 1.17%)~2.85s2.93sp=0.629 n=6
Bind Time1.58s (± 1.53%)1.58s (± 1.36%)~1.55s1.61sp=0.936 n=6
Check Time16.38s (± 0.40%)16.35s (± 0.15%)~16.32s16.38sp=0.378 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time20.87s (± 0.46%)20.83s (± 0.18%)~20.79s20.90sp=0.227 n=6
vscode - node (v18.15.0, x64)
Errors33~~~p=1.000 n=6
Symbols3,113,2313,113,231~~~p=1.000 n=6
Types1,073,1561,073,156~~~p=1.000 n=6
Memory used3,206,506k (± 0.01%)3,206,412k (± 0.01%)~3,206,050k3,206,755kp=0.689 n=6
Parse Time11.54s (± 0.79%)11.53s (± 0.48%)~11.47s11.61sp=0.873 n=6
Bind Time3.69s (± 0.37%)3.68s (± 0.51%)~3.65s3.70sp=0.618 n=6
Check Time72.02s (± 0.20%)72.03s (± 0.30%)~71.78s72.29sp=0.810 n=6
Emit Time20.80s (± 9.83%)21.54s (± 8.81%)~19.00s23.19sp=0.471 n=6
Total Time108.04s (± 1.83%)108.79s (± 1.62%)~106.53s110.69sp=0.810 n=6
webpack - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols285,172285,172~~~p=1.000 n=6
Types115,780115,780~~~p=1.000 n=6
Memory used434,951k (± 0.01%)435,042k (± 0.02%)~434,932k435,126kp=0.093 n=6
Parse Time4.06s (± 1.28%)4.04s (± 0.96%)~3.99s4.10sp=0.574 n=6
Bind Time1.72s (± 1.34%)1.74s (± 2.16%)~1.69s1.78sp=0.466 n=6
Check Time18.31s (± 0.40%)18.30s (± 0.57%)~18.15s18.46sp=0.810 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time24.10s (± 0.34%)24.08s (± 0.42%)~23.90s24.18sp=1.000 n=6
xstate-main - node (v18.15.0, x64)
Errors33~~~p=1.000 n=6
Symbols540,222540,222~~~p=1.000 n=6
Types181,145181,145~~~p=1.000 n=6
Memory used483,886k (± 0.02%)483,854k (± 0.02%)~483,643k483,947kp=0.936 n=6
Parse Time3.38s (± 0.95%)3.35s (± 0.44%)~3.34s3.38sp=0.088 n=6
Bind Time1.17s (± 0.88%)1.18s (± 0.93%)~1.16s1.19sp=0.281 n=6
Check Time19.10s (± 0.50%)19.20s (± 1.18%)~19.00s19.64sp=0.423 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time23.65s (± 0.37%)23.73s (± 0.92%)~23.53s24.16sp=0.630 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 top 400 repos with tsc comparing main and refs/pull/55178/merge:

Everything looks good!

@a-tarasyuk

Copy link
Copy Markdown
ContributorAuthor

Jake Bailey (@jakebailey) it appears that similar changes were made a while back. Should the PR be closed, or should the test be merged to resolve the issue?

@jakebailey

Copy link
Copy Markdown
Member

Taking the tests should be fine, though it'd be nice to know which PR actually fixed this...

@a-tarasyuk

Copy link
Copy Markdown
ContributorAuthor

Jake Bailey (@jakebailey) It looks like this one

@jakebailey

Copy link
Copy Markdown
Member

Aha, yep. I knew I read that somewhere.

@jakebailey
Jake Bailey (jakebailey) merged commit 241a6c9 into microsoft:mainOct 22, 2024
@microsoftMicrosoft (microsoft) locked as resolved and limited conversation to collaborators Oct 16, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

For Backlog BugPRs that fix a backlog bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Computed properties do not respect setter signatures

5 participants

@a-tarasyuk@jakebailey@typescript-bot@sandersn@navya9singh