-
-
Notifications
You must be signed in to change notification settings - Fork 771
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
Cannot stub Array.prototype.filter
#1521
Comments
Looking at this line, it makes perfect sense that we get an infinite recursion when stubbing |
We could alternatively add something like |
@mantoni : yeah, sure we could (and many other ways), but I was just saying that we should probably make this the general rule of the codebase, as any method of the standard library could be a target for stubbing. I could start by adding it to the pull request template:
|
@fatso83 Yes, I agree. I suggested this solution as it's already used heavily with |
Thanks, guys! |
This has become part of |
What did you expect to happen?
The tests should pass.
What actually happens
RangeError: Maximum call stack size exceeded
How to reproduce
Just run the tests. It worked in Sinon
1.x
and does not work in2.x
and3.x
.The text was updated successfully, but these errors were encountered: