-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
getPolyfill is incorrect, Array.find is always shimmed when calling .shim() #22
Comments
I believe this bug is present in |
Thanks, I'll fix in both places. |
Released in v2.0.2 |
Did you test this in chrome @ljharb? I'm pretty sure this fix has the exact same issue. The es6-shim fix looks correct though (the predicate in es6-shims means |
@zerovox ah crap, you're right. I forgot the negation :-) v2.0.3 coming soon. |
(for the record; my tests only test for proper behavior; an overzealous shim is not an observable bug, it's simply a negligible performance hit :-) ) |
Thanks for the quick fixes! Yep, correctness wasn't an issue but the shimmed |
That's a very interesting idea! |
The comment says 'Detect early implementations which skipped holes in sparse arrays' but this code appears to return the first item in the array, which is
undefined
, hence implemented returns false. I believe that whole clause should be negated.The text was updated successfully, but these errors were encountered: