8000 Leaky global regression by twobitfool · Pull Request #1 · twobitfool/mocha · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

< 8000 bdi class="js-issue-title markdown-title">Leaky global regression #1

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

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

Conversation

twobitfool
Copy link
Owner

If a global variable is whitelisted, it will throw off the length check in checkGlobals (a speed optimization made in 747588f).

This pull requests includes two commits:

  1. a test to show the undetected global leak bug
  2. a hand-woven revert of 747588f

Perhaps there's another way to fix this while still checking the lengths of globals and ok, but it wasn't obvious to me, and the overhead of doing the full leak check seemed pretty small.


As always, thanks so much for making the best javascript test framework.

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.

1 participant
0