Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(mangle) - mark the correct eval scope during mangling #763

Merged
merged 1 commit into from
Dec 19, 2017
Merged

Conversation

vigneshshanmugam
Copy link
Member

We were always checking the wrong scope that was marked by DCE in another pass.

@boopathi boopathi added the Tag: Bug Fix Pull Request fixes a bug label Dec 19, 2017
@@ -480,7 +481,9 @@ module.exports = babel => {
} else {
throw new Error(
`Unexpected Rename Error: ` +
`Trying to replace "${node.name}": from "${oldName}" to "${newName}". ` +
`Trying to replace "${
node.name
Copy link
Member

Choose a reason for hiding this comment

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

maybe update prettier that's used in your editor? Also, is yarn fix changing this too ?

Copy link
Member Author

Choose a reason for hiding this comment

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

yarn fix doesnt change this but changes some other things.. I have updated the editor prettier.. something weird.

@vigneshshanmugam
Copy link
Member Author

@boopathi restart appveyor build, some caching issue and add me there.

@boopathi
Copy link
Member

add me there

I can't find where to add. I'll check it.

@vigneshshanmugam
Copy link
Member Author

Omg appveyor, crazy slow. 7 mins and counting.

@boopathi boopathi merged commit a351eee into master Dec 19, 2017
@boopathi boopathi deleted the fix-366 branch December 19, 2017 22:04
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Tag: Bug Fix Pull Request fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deadcode erroneously mangling names wrt eval? babili is removing function arguments in scope of eval call
2 participants