Skip to content

Fix merge lexical environment to *always* respect prologue statements #24602

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
Jun 4, 2018

Conversation

weswigham
Copy link
Member

Fixes #24582

mergeLexicalEnvironment only called prependStatements when statements wasn't a node array. Specifically in the case of destructuring assignments, it seems like it was an array instead of a node array, causing the difference. Now mergeLexicalEnvironment uses prependStatements in both cases.

@weswigham weswigham requested a review from mhegazy June 1, 2018 22:16
@mhegazy
Copy link
Contributor

mhegazy commented Jun 2, 2018

Please port to release-2.9 as well.

@weswigham weswigham merged commit 779fa98 into microsoft:master Jun 4, 2018
@weswigham weswigham deleted the more-prolog-location-fixes branch June 4, 2018 17:34
@microsoft microsoft locked and limited conversation to collaborators Aug 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants