Skip to content

Fix value confusion in recursive template literals #2070

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

Merged
merged 1 commit into from
Sep 13, 2021
Merged

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Sep 12, 2021

Fixes #1944 where in the general case reusing a StaticArray, when the same expression is recursively involved in subexpressions, preparing the subexpression (using the same StaticArray) could overwrite yet unprocessed values before the outer .join("") is performed.

  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

@dcodeIO dcodeIO merged commit 1d11f4b into main Sep 13, 2021
@dcodeIO dcodeIO deleted the issue-1944 branch September 14, 2021 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] String interpolation can rewrite local variables when making function calls inside string
1 participant