Skip to content

Error on too many parameters for iterator method - #60321

Merged
Ron Buckton (rbuckton) merged 2 commits into
mainfrom
fix57130
Oct 22, 2024
Merged

Error on too many parameters for iterator method#60321
Ron Buckton (rbuckton) merged 2 commits into
mainfrom
fix57130

Conversation

@rbuckton

@rbucktonRon Buckton (rbuckton) commented Oct 22, 2024

Copy link
Copy Markdown
Contributor

This reports an error when [Symbol.iterator]() or [Symbol.asyncIterator]() cannot safely be called by for..of, yield*, or ... due to a parameter count mismatch.

Fixes#57130

@jakebailey

Copy link
Copy Markdown
Member

TypeScript Bot (@typescript-bot) test it

@typescript-bot

TypeScript Bot (typescript-bot) commented Oct 22, 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

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

Everything looks good!

@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,484k (± 0.79%)192,778k (± 0.01%)-706k (- 0.36%)192,750k192,805kp=0.045 n=6
Parse Time1.31s (± 0.62%)1.31s (± 0.96%)~1.29s1.32sp=0.796 n=6
Bind Time0.72s0.72s (± 0.57%)~0.72s0.73sp=0.405 n=6
Check Time9.76s (± 0.28%)9.73s (± 0.38%)~9.67s9.78sp=0.091 n=6
Emit Time2.68s (± 1.35%)2.73s (± 0.65%)~2.70s2.74sp=0.050 n=6
Total Time14.48s (± 0.38%)14.48s (± 0.26%)~14.43s14.53sp=0.873 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,567k (± 0.00%)1,224,624k (± 0.00%)+57k (+ 0.00%)1,224,562k1,224,653kp=0.031 n=6
Parse Time6.67s (± 0.63%)6.62s (± 0.62%)-0.06s (- 0.87%)6.59s6.69sp=0.043 n=6
Bind Time1.88s (± 0.40%)1.88s (± 0.29%)~1.88s1.89sp=0.476 n=6
Check Time31.82s (± 0.53%)31.88s (± 0.29%)~31.73s31.98sp=0.809 n=6
Emit Time15.17s (± 0.26%)15.19s (± 0.38%)~15.10s15.25sp=0.629 n=6
Total Time55.54s (± 0.31%)55.57s (± 0.28%)~55.30s55.78sp=0.748 n=6
mui-docs - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols2,494,4982,494,498~~~p=1.000 n=6
Types908,298908,298~~~p=1.000 n=6
Memory used2,307,104k (± 0.00%)2,307,074k (± 0.00%)~2,307,036k2,307,113kp=0.298 n=6
Parse Time9.31s (± 0.16%)9.32s (± 0.21%)~9.30s9.35sp=0.325 n=6
Bind Time2.14s (± 0.35%)2.15s (± 0.39%)~2.13s2.15sp=0.432 n=6
Check Time74.76s (± 0.33%)75.09s (± 0.12%)+0.33s (+ 0.44%)74.97s75.21sp=0.013 n=6
Emit Time0.28s (± 4.71%)0.28s (± 4.27%)~0.27s0.30sp=0.865 n=6
Total Time86.49s (± 0.28%)86.84s (± 0.10%)+0.35s (+ 0.41%)86.71s86.92sp=0.013 n=6
self-build-src - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols1,258,0331,258,041+8 (+ 0.00%)~~p=0.001 n=6
Types266,263266,229-34 (- 0.01%)~~p=0.001 n=6
Memory used3,146,384k (± 0.01%)3,146,885k (± 0.02%)~3,145,940k3,147,625kp=0.230 n=6
Parse Time6.57s (± 0.59%)6.62s (± 0.36%)+0.05s (+ 0.76%)6.59s6.64sp=0.030 n=6
Bind Time2.34s (± 1.14%)2.33s (± 0.97%)~2.30s2.36sp=0.748 n=6
Check Time43.12s (± 0.16%)42.98s (± 0.42%)~42.81s43.26sp=0.173 n=6
Emit Time3.54s (± 1.57%)3.50s (± 2.70%)~3.37s3.63sp=0.575 n=6
Total Time55.58s (± 0.09%)55.44s (± 0.30%)~55.24s55.68sp=0.128 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols1,258,0331,258,041+8 (+ 0.00%)~~p=0.001 n=6
Types266,263266,229-34 (- 0.01%)~~p=0.001 n=6
Memory used2,496,230k (± 0.01%)2,496,475k (± 0.03%)~2,495,703k2,497,440kp=1.000 n=6
Parse Time5.38s (± 0.92%)5.40s (± 0.68%)~5.34s5.45sp=0.335 n=6
Bind Time1.74s (± 0.47%)1.74s (± 0.32%)~1.73s1.74sp=0.859 n=6
Check Time35.85s (± 0.33%)35.83s (± 0.15%)~35.73s35.88sp=1.000 n=6
Emit Time3.02s (± 1.49%)3.01s (± 1.79%)~2.94s3.10sp=0.470 n=6
Total Time45.99s (± 0.39%)45.98s (± 0.20%)~45.88s46.08sp=1.000 n=6
self-compiler - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols261,789261,753-36 (- 0.01%)~~p=0.001 n=6
Types106,511106,477-34 (- 0.03%)~~p=0.001 n=6
Memory used438,818k (± 0.01%)438,702k (± 0.02%)-116k (- 0.03%)438,565k438,743kp=0.008 n=6
Parse Time3.52s (± 0.91%)3.50s (± 1.12%)~3.46s3.57sp=0.419 n=6
Bind Time1.30s (± 0.64%)1.32s (± 1.66%)~1.30s1.36sp=0.128 n=6
Check Time18.85s (± 0.50%)18.86s (± 0.24%)~18.80s18.90sp=0.686 n=6
Emit Time1.54s (± 1.82%)1.53s (± 1.04%)~1.50s1.54sp=0.114 n=6
Total Time25.22s (± 0.31%)25.21s (± 0.24%)~25.16s25.33sp=0.810 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,094k (± 0.01%)371,080k (± 0.01%)~371,056k371,125kp=0.173 n=6
Parse Time2.90s (± 1.37%)2.90s (± 1.35%)~2.84s2.95sp=0.936 n=6
Bind Time1.58s (± 1.68%)1.60s (± 0.68%)~1.58s1.61sp=0.145 n=6
Check Time16.38s (± 0.36%)16.39s (± 0.28%)~16.30s16.43sp=0.335 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time20.86s (± 0.34%)20.89s (± 0.21%)~20.84s20.94sp=0.333 n=6
vscode - node (v18.15.0, x64)
Errors33~~~p=1.000 n=6
Symbols3,126,3753,126,375~~~p=1.000 n=6
Types1,077,6861,077,686~~~p=1.000 n=6
Memory used3,218,522k (± 0.01%)3,218,284k (± 0.01%)~3,217,889k3,218,838kp=0.471 n=6
Parse Time14.13s (± 0.31%)14.10s (± 0.16%)~14.08s14.13sp=0.146 n=6
Bind Time4.47s (± 0.24%)4.47s (± 0.31%)~4.45s4.49sp=0.504 n=6
Check Time86.70s (± 2.31%)85.38s (± 1.62%)~83.82s87.94sp=0.298 n=6
Emit Time26.91s (± 3.42%)26.73s (± 4.48%)~25.03s28.46sp=0.574 n=6
Total Time132.21s (± 1.80%)130.67s (± 1.29%)~128.87s133.44sp=0.298 n=6
webpack - node (v18.15.0, x64)
Errors00~~~p=1.000 n=6
Symbols286,375286,375~~~p=1.000 n=6
Types116,078116,078~~~p=1.000 n=6
Memory used437,033k (± 0.01%)437,189k (± 0.03%)+156k (+ 0.04%)437,003k437,335kp=0.031 n=6
Parse Time5.05s (± 1.22%)5.05s (± 1.05%)~4.98s5.10sp=0.872 n=6
Bind Time2.16s (± 1.29%)2.18s (± 1.31%)~2.15s2.23sp=0.625 n=6
Check Time22.88s (± 0.30%)22.98s (± 0.58%)~22.77s23.10sp=0.199 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time30.10s (± 0.39%)30.21s (± 0.53%)~30.01s30.35sp=0.172 n=6
xstate-main - node (v18.15.0, x64)
Errors33~~~p=1.000 n=6
Symbols543,130543,130~~~p=1.000 n=6
Types181,889181,889~~~p=1.000 n=6
Memory used485,509k (± 0.01%)485,527k (± 0.01%)~485,479k485,564kp=0.378 n=6
Parse Time4.17s (± 1.00%)4.17s (± 0.25%)~4.15s4.18sp=0.807 n=6
Bind Time1.46s (± 1.14%)1.45s (± 1.07%)~1.43s1.47sp=0.282 n=6
Check Time23.70s (± 0.29%)23.69s (± 0.32%)~23.60s23.81sp=0.687 n=6
Emit Time0.00s0.00s~~~p=1.000 n=6
Total Time29.34s (± 0.28%)29.30s (± 0.28%)~29.23s29.45sp=0.378 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/60321/merge:

Everything looks good!

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: TeamFor Milestone BugPRs that fix a bug with a specific milestone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implicit Symbol.iterator call does not check additional arguments

5 participants

@rbuckton@jakebailey@typescript-bot@gabritto@sandersn