Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow assignments to readonly class properties within IIFEs contained in constructors #60416

Conversation

Andarist
Copy link
Contributor

@Andarist Andarist commented Nov 4, 2024

fixes #60413

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Nov 4, 2024
@jakebailey
Copy link
Member

@typescript-bot test it

@typescript-bot
Copy link
Collaborator

typescript-bot commented Nov 4, 2024

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

@typescript-bot
Copy link
Collaborator

Hey @jakebailey, the results of running the DT tests are ready.

Everything looks the same!

You can check the log here.

@typescript-bot
Copy link
Collaborator

@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,400k (± 0.76%) 192,862k (± 0.07%) ~ 192,766k 193,152k p=0.689 n=6
Parse Time 1.30s (± 0.84%) 1.30s (± 1.26%) ~ 1.29s 1.33s p=0.734 n=6
Bind Time 0.72s (± 0.57%) 0.72s (± 0.57%) ~ 0.72s 0.73s p=1.000 n=6
Check Time 9.74s (± 0.32%) 9.76s (± 0.37%) ~ 9.73s 9.83s p=1.000 n=6
Emit Time 2.72s (± 0.57%) 2.73s (± 0.51%) ~ 2.71s 2.75s p=0.683 n=6
Total Time 14.48s (± 0.17%) 14.51s (± 0.30%) ~ 14.47s 14.59s p=0.369 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,599k (± 0.00%) 1,224,640k (± 0.00%) ~ 1,224,584k 1,224,703k p=0.173 n=6
Parse Time 6.64s (± 0.75%) 6.62s (± 0.35%) ~ 6.59s 6.65s p=0.517 n=6
Bind Time 1.89s (± 0.29%) 1.88s (± 0.40%) ~ 1.87s 1.89s p=0.476 n=6
Check Time 31.85s (± 0.14%) 31.87s (± 0.35%) ~ 31.72s 32.01s p=1.000 n=6
Emit Time 15.19s (± 0.32%) 15.30s (± 0.77%) ~ 15.16s 15.47s p=0.077 n=6
Total Time 55.56s (± 0.14%) 55.66s (± 0.29%) ~ 55.50s 55.88s p=0.261 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,261k (± 0.00%) 2,307,260k (± 0.00%) ~ 2,307,205k 2,307,302k p=0.936 n=6
Parse Time 9.32s (± 0.32%) 9.32s (± 0.43%) ~ 9.28s 9.38s p=0.871 n=6
Bind Time 2.13s (± 0.26%) 2.15s (± 0.64%) ~ 2.13s 2.17s p=0.090 n=6
Check Time 75.21s (± 0.27%) 74.97s (± 0.30%) ~ 74.72s 75.36s p=0.078 n=6
Emit Time 0.28s (± 1.86%) 0.28s (± 1.45%) ~ 0.28s 0.29s p=0.114 n=6
Total Time 86.94s (± 0.26%) 86.72s (± 0.28%) ~ 86.42s 87.14s p=0.109 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,258,544 1,258,543 -1 (- 0.00%) ~ ~ p=0.001 n=6
Types 266,358 266,358 ~ ~ ~ p=1.000 n=6
Memory used 2,423,400k (± 0.02%) 2,423,085k (± 0.02%) ~ 2,422,188k 2,423,492k p=0.230 n=6
Parse Time 5.23s (± 0.45%) 5.23s (± 0.21%) ~ 5.21s 5.24s p=0.575 n=6
Bind Time 1.92s (± 0.57%) 1.92s (± 0.63%) ~ 1.90s 1.93s p=0.652 n=6
Check Time 35.55s (± 0.20%) 35.55s (± 0.18%) ~ 35.44s 35.63s p=0.689 n=6
Emit Time 3.00s (± 0.94%) 3.02s (± 1.32%) ~ 2.97s 3.08s p=0.377 n=6
Total Time 45.70s (± 0.18%) 45.73s (± 0.18%) ~ 45.63s 45.83s p=0.689 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,543 -1 (- 0.00%) ~ ~ p=0.001 n=6
Types 266,358 266,358 ~ ~ ~ p=1.000 n=6
Memory used 2,980,603k (±12.47%) 2,620,396k (±11.19%) ~ 2,499,838k 3,219,507k p=0.173 n=6
Parse Time 6.78s (± 2.40%) 6.59s (± 2.04%) ~ 6.50s 6.86s p=0.128 n=6
Bind Time 2.12s (± 2.02%) 2.15s (± 1.00%) ~ 2.13s 2.19s p=0.149 n=6
Check Time 43.21s (± 0.35%) 43.19s (± 0.38%) ~ 42.89s 43.36s p=1.000 n=6
Emit Time 3.65s (± 6.50%) 3.51s (± 2.52%) ~ 3.39s 3.62s p=0.230 n=6
Total Time 55.77s (± 0.55%) 55.45s (± 0.42%) ~ 55.12s 55.76s p=0.093 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 261,751 261,750 -1 (- 0.00%) ~ ~ p=0.001 n=6
Types 106,472 106,472 ~ ~ ~ p=1.000 n=6
Memory used 438,818k (± 0.01%) 438,827k (± 0.02%) ~ 438,691k 438,937k p=0.689 n=6
Parse Time 3.56s (± 0.99%) 3.53s (± 0.60%) ~ 3.51s 3.57s p=0.170 n=6
Bind Time 1.32s (± 0.89%) 1.32s (± 1.05%) ~ 1.29s 1.33s p=1.000 n=6
Check Time 18.95s (± 0.31%) 18.97s (± 0.65%) ~ 18.85s 19.17s p=1.000 n=6
Emit Time 1.54s (± 0.79%) 1.54s (± 1.45%) ~ 1.50s 1.56s p=0.684 n=6
Total Time 25.36s (± 0.22%) 25.36s (± 0.52%) ~ 25.23s 25.58s p=0.377 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,123k (± 0.02%) 371,125k (± 0.01%) ~ 371,087k 371,206k p=0.810 n=6
Parse Time 2.91s (± 0.77%) 2.90s (± 1.32%) ~ 2.84s 2.95s p=0.570 n=6
Bind Time 1.59s (± 0.65%) 1.58s (± 1.24%) ~ 1.56s 1.61s p=0.805 n=6
Check Time 16.41s (± 0.41%) 16.40s (± 0.11%) ~ 16.38s 16.43s p=1.000 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 20.91s (± 0.28%) 20.88s (± 0.24%) ~ 20.79s 20.92s p=0.747 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,221,188k (± 0.00%) 3,221,101k (± 0.01%) ~ 3,220,518k 3,221,270k p=1.000 n=6
Parse Time 14.16s (± 0.63%) 14.08s (± 0.55%) ~ 13.97s 14.20s p=0.128 n=6
Bind Time 4.50s (± 2.46%) 4.55s (± 3.04%) ~ 4.45s 4.75s p=0.253 n=6
Check Time 86.65s (± 3.47%) 86.78s (± 2.05%) ~ 84.64s 88.56s p=0.575 n=6
Emit Time 26.51s (± 6.63%) 25.44s (± 8.11%) ~ 22.80s 27.20s p=0.066 n=6
Total Time 131.82s (± 2.91%) 130.85s (± 2.09%) ~ 126.94s 134.15s p=0.575 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,536k (± 0.02%) 439,505k (± 0.03%) ~ 439,338k 439,644k p=0.936 n=6
Parse Time 4.07s (± 0.48%) 4.10s (± 0.67%) ~ 4.06s 4.13s p=0.072 n=6
Bind Time 1.75s (± 1.43%) 1.75s (± 1.11%) ~ 1.73s 1.78s p=1.000 n=6
Check Time 18.72s (± 0.64%) 18.60s (± 0.45%) ~ 18.52s 18.76s p=0.065 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 24.54s (± 0.51%) 24.46s (± 0.39%) ~ 24.39s 24.64s p=0.261 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,498k (± 0.01%) 485,479k (± 0.02%) ~ 485,249k 485,569k p=0.936 n=6
Parse Time 4.16s (± 0.70%) 4.18s (± 0.29%) ~ 4.17s 4.20s p=0.254 n=6
Bind Time 1.45s (± 1.20%) 1.46s (± 1.09%) ~ 1.44s 1.48s p=0.458 n=6
Check Time 23.64s (± 0.32%) 23.77s (± 0.68%) ~ 23.59s 24.05s p=0.149 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 29.25s (± 0.36%) 29.41s (± 0.55%) ~ 29.22s 29.70s p=0.065 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

@typescript-bot
Copy link
Collaborator

@jakebailey Here are the results of running the user tests with tsc comparing main and refs/pull/60416/merge:

Everything looks good!

@typescript-bot
Copy link
Collaborator

@jakebailey Here are the results of running the top 400 repos with tsc comparing main and refs/pull/60416/merge:

Everything looks good!

@Andarist
Copy link
Contributor Author

@jakebailey 2 approvals and CI is happy about it, is there anything else to be done here before landing this one? :)

@jakebailey
Copy link
Member

No, I just forgot to merge it 😅

@jakebailey jakebailey merged commit 9717772 into microsoft:main Dec 2, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Cannot set readonly property in IIFE
4 participants