It's easy to forget actually calling a prototype method which leads to possibly hard-to-debug errors.
Since e.g. many array methods accept a callback or only an optional parameter, this could be handled with an allowlist per global object, e.g. Array.prototype.map
wouldnt need to be checked for.
function foo(myString) {
return string.slice(3).toLowerCase
}
function foo(myArr) {
return myArr.map(val => val ** 2).reverse
}
function foo(myString) {
return string.slice(3).toLowerCase()
}
function foo(myArr) {
return myArr.map(val => val ** 2).reverse()
}
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too