Skip to content

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

Merged
weswigham merged 1 commit into
microsoft:masterfrom
weswigham:more-prolog-location-fixes
Jun 4, 2018
Merged

Fix merge lexical environment to *always* respect prologue statements#24602
weswigham merged 1 commit into
microsoft:masterfrom
weswigham:more-prolog-location-fixes

Conversation

@weswigham
Copy link
Copy Markdown
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
Copy Markdown
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