Skip to content
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

Fix #167: prefix non-enumerable globals with var #168

Merged
merged 4 commits into from
Dec 18, 2021

Conversation

rensbaardman
Copy link
Contributor

As discussed in #167, getImportGlobalsSrc.js missed all the non-enumerable globals. There are quite a lot of them (way more than the handful of enumerable globals in Node). This fixes a failing test, that depended on whether console was an enumerable global or not. It was in Node 9, it wasn't in Node 10.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 97.674% when pulling e45e986 on rensbaardman:fix-167-global-var-leakage into 5bea3d8 on jhnns:master.

@coveralls
Copy link

coveralls commented Jun 11, 2019

Coverage Status

Coverage increased (+0.06%) to 97.674% when pulling 7bec7f8 on rensbaardman:fix-167-global-var-leakage into 5bea3d8 on jhnns:master.

@rensbaardman rensbaardman changed the title Fix #167: non-enumerable globals are now also prefixed with var Fix #167: prefix non-enumerable globals with var Jul 24, 2019
@XhmikosR
Copy link

@jhnns can you please review, merge and release a new patch version?

@jhnns jhnns merged commit 22572ac into jhnns:master Dec 18, 2021
@jhnns
Copy link
Owner

jhnns commented Dec 19, 2021

Thank you 🙏

Published as v6.0.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants