Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
fix(animations): replace copy of query selector node-list from "spread" to "for" #39646
Conversation
|
@petebacondarwin Would you please just let me know why are circle ci tests failing? |
|
@basherr - it looks like the CI is being run under your account rather than Angular's. Did you turn on CircleCI integration for your own fork? I suggest turning that off since it might be blocking the normal Angular CI running? |
Is there a way to re-run the tests? Just turned off CircleCi on my fork. Thanks |
The CI run is failing because the commits need to be rebased on top of latest master. The instructions are provided in the CI job:
In this case, you'll also want to squash all commits into a single one, so you'll want to run an interactive rebase and mark all commits but the first as squash. |
|
All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the |
5c6f825
to
348a0db
e7390eb
to
53c9e9e
|
Hi @basherr, Could you please squash all commits in this PR and update commit message ( Here is my proposal (based on the comments in the code):
Thank you. |
6f84b7c
to
970cff1
|
@AndrewKushnir The build fails due to the commit message body being too long. What about the following only?
|
|
@basherr - it is only the length of "each line" that must be under 120 chars I suspect that you put the whole body in a single line? Try splitting the body into multiple lines like in @AndrewKushnir's example. |
|
Also there are still 2 commits in this PR. Can you squash them into one? |
…d" to "for" For element queries that return sufficiently large NodeList objects, using spread syntax to populate the results array causes a RangeError due to the call stack limit being reached. This commit updates the code to use regular "for" loop instead. Fixes #38551.
970cff1
to
ecab8ac
|
@AndrewKushnir @petebacondarwin All set! thanks for your help. However, the reviewers seem too much occupied. |
|
reviewed-for: global-approvers |
|
reviewed-for: global-approvers |


The animation driver fails to query a large number of query selectors. Limitation varies across all browsers.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #38551
What is the new behavior?
Spread syntax(...) exceeds stake size in browsers. The following work workbench demonstrates the limitation both in chrome and firefox:
https://jsbench.me/r1khehfd20/1
As per @AleksanderBodurri workbench example, the performance increases slightly with for loop compared to the rest:
https://jsbench.me/grkhenmtkb/1
Does this PR introduce a breaking change?
Other information
Fixes #38551