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
Aurelia polyfills are enumerable #12
Comments
Well, you shouldn't use a for/in loop with an array ;) But, we'll get it fixed. |
I was sure you would say that. 😉 I don't approve but I'm not the only committer to our code base... |
We'll fix it. I'm looking at it now. No problem :) |
Reading my comment above I realize it was ambiguous... For the record I don't approve the practice of Just sayin': a quick glance over the code shows that |
Yeah, I understood your meaning :) I fixed the array issues but wasn't sure if it was worth it to fix the string issues. It's not that big a deal though. I could do it. |
When you simply assign the prototype, like so:
Array.prototype.includes = function...
You introduce a new enumerable member for all arrays.
So if someone had written code like this:
It's very likely to now break, because
"includes"
will be an iteration ofi
.This is a regression wrt previous releases that used corejs. I didn't check but I guess that CoreJs defines a non-enumerable property for its polyfills.
The text was updated successfully, but these errors were encountered: