-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
Should tape be resilient against mutating the ES5 environment #174
Comments
My argument is that while an individual module certainly may decide to be robust against builtin modification, or not - The subset of modules that does try to be robust against builtin modification needs a way to test that robustness. If In an ES5 world, it's trivial to be robust against this entirely by using What I'd like to see come out of this discussion is a clear agreement that we:
The only extra dependency we'd need to achieve all three is |
👍 The whole point of tape was testing in IE6. |
This might be a niche case, but it's easy to support using modules like has and function-bind, so I'm in favor. IE6/ES3 is also something of a 1% case at this point too, but it's worth maintaining support. |
@ljharb I buy it; Feel free to continue reviewing with stability in mind and I'll stop bikeshedding :P |
Awesome, thanks for clarifying :-) I don't mind the discussion at all and I'm glad you brought it up! I'll make a PR sometime soon that switches to using |
People tend to not mutate the ES5 environment by deleting methods on build in prototypes.
Anyone that does this in production is being silly.
Should tape be defensive against this. I think this is really a 1% case.
cc @ljharb
The text was updated successfully, but these errors were encountered: