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

Mocha reports variable leaks into global scope #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

forissier
Copy link

Mocha (http://visionmedia.github.com/mocha/) reports some errors in a projet of mine that uses SaxParser().
For instance:
Error: global leak detected: util
Error: global leaks detected: iRet, theatts, splits, nameobject, that

Mocha (http://visionmedia.github.com/mocha/) reports the following error
when running tests on code that calls SaxParser().parseString():
  Error: global leak detected: util
Fixes the follwing Mocha error:
  Error: global leaks detected: iRet, theatts, splits, nameobject, that
@erossignon
Copy link

mocha still reports leaks:
Error: global leaks detected: iRet, theatts, splits, nameobject, that, theattsandnamespace, strEnt

Would it be nice if node-xml come with a set of unit test ?

@mgoldverg-equinix
Copy link

Looks like node-xml has a leak in the memory. At least if I am running mocha with "--check-leaks" check its working. Now I thinking to find another library because I don't want to have any leaks in memory in my project.

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.

3 participants