fix: forward thisArg in the array-methods plugin (#1292)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
The plugin hand-rolls filter, find and findLast and invoked the predicate as a bare call, dropping the optional thisArg argument. Any predicate reading `this` threw a TypeError once enableArrayMethods() was on. findIndex, findLastIndex, some and every were unaffected: they fall through to the native method, which forwards thisArg itself. The Map/Set plugin already does the same with cb.call(thisArg, ...).
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+95 added−2 removed
- tests:+91 added−0 removed
- other:+4 added−2 removed