-
Notifications
You must be signed in to change notification settings - Fork 26.2k
fix(animations): replace copy of query selector node-list from "spread" to "for" #39646
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
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 ℹ️ Googlers: Go here for more info. |
5c6f825
to
348a0db
Compare
e7390eb
to
53c9e9e
Compare
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
Compare
@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 angular#38551.
970cff1
to
ecab8ac
Compare
@AndrewKushnir @petebacondarwin All set! thanks for your help. However, the reviewers seem too much occupied. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed-for: global-approvers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed-for: global-approvers
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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 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