-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
currentContext exposure? #4792
Comments
the only reason I'm not making a pr is because I am inclined to believe that there is a good reason to not expose the that variable (given how easy it is to do so) |
|
@juergba Here is a js fiddle explaining my point |
@juergba Any updates? |
I don't know wether we are talking about the same
I'm sorry, but I don't understand your point. |
@juergba sorry for the late reply But to give an idea what I thought was But now that I follow the code execution, it has an empty context. I'm not sure why anyway I think I get the idea better now |
I was reading the code and found out that the local variable
currentContext
is used but not accessible outside the libraryI think a simple
mocha.getCurrentContext()
would help developers and even myself write cleaner mocha extensionsAre there any problems with this? Can I write a pr for something this simple?
The text was updated successfully, but these errors were encountered: