Skip to content

[DCE] Fix removal of ArrayPattern - #622

Merged
boopathi merged 1 commit into
masterfrom
array-pattern-01
Jul 8, 2017
Merged

boopathi merged 1 commit into
masterfrom
array-pattern-01

Conversation

@boopathi

@boopathi boopathi commented Jul 8, 2017 •

Copy link
Copy Markdown
Member

@boopathi boopathi added the Tag: Bug Fix Pull Request fixes a bug label Jul 8, 2017
@boopathi
boopathi merged commit 83f8819 into master Jul 8, 2017
@boopathi
boopathi deleted the array-pattern-01 branch July 8, 2017 14:22
if (
binding.path.node.init &&
!scope.isPure(binding.path.node.init) &&
binding.path.parentPath.node.declarations

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm currently getting the error Cannot read property 'declarations' of null here. Doing steps to reproduce is a lot of work (big repo). So I thought I would take a wild stab in the dark and ask if you could see that it would in any way make sense to add a guard here for if binding.path.parentPath.node is null? If that doesn't make sense I apologise for wasting your time...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Tag: Bug Fix Pull Request fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants