Skip to content

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

Merged
Jake Bailey (jakebailey) merged 1 commit into
microsoft:mainfrom
Andarist:allow-readonly-assignments-iife-constructors
Dec 2, 2024
Merged

Allow assignments to readonly class properties within IIFEs contained in constructors#60416
Jake Bailey (jakebailey) merged 1 commit into
microsoft:mainfrom
Andarist:allow-readonly-assignments-iife-constructors

Conversation

@Andarist

Copy link
Copy Markdown
Contributor

fixes#60413

@typescript-botTypeScript Bot (typescript-bot) added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Nov 4, 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,400k (± 0.76%)192,862k (± 0.07%)~192,766k193,152kp=0.689 n=6
Parse Time1.30s (± 0.84%)1.30s (± 1.26%)~1.29s1.33sp=0.734 n=6
Bind Time0.72s (± 0.57%)0.72s (± 0.57%)~0.72s0.73sp=1.000 n=6
Check Time9.74s (± 0.32%)9.76s (± 0.37%)~9.73s9.83sp=1.000 n=6
Emit Time2.72s (± 0.57%)2.73s (± 0.51%)~2.71s2.75sp=0.683 n=6
Total Time14.48s (± 0.17%)14.51s (± 0.30%)~14.47s14.59sp=0.369 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,599k (± 0.00%)1,224,640k (± 0.00%)~1,224,584k1,224,703kp=0.173 n=6
Parse Time6.64s (± 0.75%)6.62s (± 0.35%)~6.59s6.65sp=0.517 n=6
Bind Time1.89s (± 0.29%)1.88s (± 0.40%)~1.87s1.89sp=0.476 n=6
Check Time31.85s (± 0.14%)31.87s (± 0.35%)~31.72s32.01sp=1.000 n=6
Emit Time15.19s (± 0.32%)15.30s (± 0.77%)~15.16s15.47sp=0.077 n=6
Total Time55.56s (± 0.14%)55.66s (± 0.29%)~55.50s55.88sp=0.261 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,261k (± 0.00%)2,307,260k (± 0.00%)~2,307,205k2,307,302kp=0.936 n=6
Parse Time9.32s (± 0.32%)9.32s (± 0.43%)~9.28s9.38sp=0.871 n=6
Bind Time2.13s (± 0.26%)2.15s (± 0.64%)~2.13s2.17sp=0.090 n=6
Check Time75.21s (± 0.27%)74.97s (± 0.30%)~74.72s75.36sp=0.078 n=6
Emit Time0.28s (± 1.86%)0.28s (± 1.45%)~0.28s0.29sp=0.114 n=6
Total Time86.94s (± 0.26%)86.72s (± 0.28%)~86.42s87.14sp=0.109 n=6
self-build-src - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols1,258,5441,258,543-1 (- 0.00%)~~p=0.001 n=6
Types266,358266,358~~~p=1.000 n=6
Memory used2,423,400k (± 0.02%)2,423,085k (± 0.02%)~2,422,188k2,423,492kp=0.230 n=6
Parse Time5.23s (± 0.45%)5.23s (± 0.21%)~5.21s5.24sp=0.575 n=6
Bind Time1.92s (± 0.57%)1.92s (± 0.63%)~1.90s1.93sp=0.652 n=6
Check Time35.55s (± 0.20%)35.55s (± 0.18%)~35.44s35.63sp=0.689 n=6
Emit Time3.00s (± 0.94%)3.02s (± 1.32%)~2.97s3.08sp=0.377 n=6
Total Time45.70s (± 0.18%)45.73s (± 0.18%)~45.63s45.83sp=0.689 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols1,258,5441,258,543-1 (- 0.00%)~~p=0.001 n=6
Types266,358266,358~~~p=1.000 n=6
Memory used2,980,603k (±12.47%)2,620,396k (±11.19%)~2,499,838k3,219,507kp=0.173 n=6
Parse Time6.78s (± 2.40%)6.59s (± 2.04%)~6.50s6.86sp=0.128 n=6
Bind Time2.12s (± 2.02%)2.15s (± 1.00%)~2.13s2.19sp=0.149 n=6
Check Time43.21s (± 0.35%)43.19s (± 0.38%)~42.89s43.36sp=1.000 n=6
Emit Time3.65s (± 6.50%)3.51s (± 2.52%)~3.39s3.62sp=0.230 n=6
Total Time55.77s (± 0.55%)55.45s (± 0.42%)~55.12s55.76sp=0.093 n=6
self-compiler - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols261,751261,750-1 (- 0.00%)~~p=0.001 n=6
Types106,472106,472~~~p=1.000 n=6
Memory used438,818k (± 0.01%)438,827k (± 0.02%)~438,691k438,937kp=0.689 n=6
Parse Time3.56s (± 0.99%)3.53s (± 0.60%)~3.51s3.57sp=0.170 n=6
Bind Time1.32s (± 0.89%)1.32s (± 1.05%)~1.29s1.33sp=1.000 n=6
Check Time18.95s (± 0.31%)18.97s (± 0.65%)~18.85s19.17sp=1.000 n=6
Emit Time1.54s (± 0.79%)1.54s (± 1.45%)~1.50s1.56sp=0.684 n=6
Total Time25.36s (± 0.22%)25.36s (± 0.52%)~25.23s25.58sp=0.377 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,123k (± 0.02%)371,125k (± 0.01%)~371,087k371,206kp=0.810 n=6
Parse Time2.91s (± 0.77%)2.90s (± 1.32%)~2.84s2.95sp=0.570 n=6
Bind Time1.59s (± 0.65%)1.58s (± 1.24%)~1.56s1.61sp=0.805 n=6
Check Time16.41s (± 0.41%)16.40s (± 0.11%)~16.38s16.43sp=1.000 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time20.91s (± 0.28%)20.88s (± 0.24%)~20.79s20.92sp=0.747 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,221,188k (± 0.00%)3,221,101k (± 0.01%)~3,220,518k3,221,270kp=1.000 n=6
Parse Time14.16s (± 0.63%)14.08s (± 0.55%)~13.97s14.20sp=0.128 n=6
Bind Time4.50s (± 2.46%)4.55s (± 3.04%)~4.45s4.75sp=0.253 n=6
Check Time86.65s (± 3.47%)86.78s (± 2.05%)~84.64s88.56sp=0.575 n=6
Emit Time26.51s (± 6.63%)25.44s (± 8.11%)~22.80s27.20sp=0.066 n=6
Total Time131.82s (± 2.91%)130.85s (± 2.09%)~126.94s134.15sp=0.575 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,536k (± 0.02%)439,505k (± 0.03%)~439,338k439,644kp=0.936 n=6
Parse Time4.07s (± 0.48%)4.10s (± 0.67%)~4.06s4.13sp=0.072 n=6
Bind Time1.75s (± 1.43%)1.75s (± 1.11%)~1.73s1.78sp=1.000 n=6
Check Time18.72s (± 0.64%)18.60s (± 0.45%)~18.52s18.76sp=0.065 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time24.54s (± 0.51%)24.46s (± 0.39%)~24.39s24.64sp=0.261 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,498k (± 0.01%)485,479k (± 0.02%)~485,249k485,569kp=0.936 n=6
Parse Time4.16s (± 0.70%)4.18s (± 0.29%)~4.17s4.20sp=0.254 n=6
Bind Time1.45s (± 1.20%)1.46s (± 1.09%)~1.44s1.48sp=0.458 n=6
Check Time23.64s (± 0.32%)23.77s (± 0.68%)~23.59s24.05sp=0.149 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time29.25s (± 0.36%)29.41s (± 0.55%)~29.22s29.70sp=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)
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/60416/merge:

Everything looks good!

@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/60416/merge:

Everything looks good!

@Andarist

Copy link
Copy Markdown
ContributorAuthor

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

@jakebailey

Copy link
Copy Markdown
Member

No, I just forgot to merge it 😅

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.

Cannot set readonly property in IIFE

5 participants

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