Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

turning function into generators only if function uses one of 'names' #10

Merged
merged 4 commits into from
Oct 11, 2019

Conversation

idobh2
Copy link
Contributor

@idobh2 idobh2 commented Apr 10, 2018

I've recently encountered some code that went through this module (it was a pac file used by pac-resolver). The code had some functions that were used as constructors, but never used any of the passed names in their call tree. This caused the degenerated code to crush for using generator function as a constructor.

I know this PR doesn't directly solve the constructor issue, but at least for constructor usage that does not invoke any of the names function it should do the trick

@TooTallNate TooTallNate merged commit 1d139c1 into TooTallNate:master Oct 11, 2019
@TooTallNate
Copy link
Owner

Cool, thanks!

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