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

Replace Identifier only if key and value are different in the scope #19

Merged
merged 2 commits into from
Apr 5, 2023

Conversation

candunaj
Copy link

@candunaj candunaj commented Apr 5, 2023

This PR fixes "maximum call stack exception" when the template is transpiled into the glimmer wire format and there is scope with some different and some equal keys.

scope: ()=> ({
  Message: Message$1,
  Label 
})

There was a problem when the key and value were equal in the scope. Identifier was replaced with the same Identifier so there was a "Maximum call stack exception".

@ef4
Copy link
Contributor

ef4 commented Apr 5, 2023

Oh yeah! Babel will rerun the visitors on the newly inserted code, so that makes sense.

@ef4 ef4 merged commit 808887e into emberjs:main Apr 5, 2023
@ef4 ef4 added the bug Something isn't working label Apr 5, 2023
@ef4
Copy link
Contributor

ef4 commented Apr 5, 2023

Released in 2.0.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants