Open Bug 1394569 Opened 2 years ago Updated 2 years ago

Array.prototype.filter polyfill compares result of typeof operator to "Function" instead of "function"

Categories

(Developer Documentation :: JavaScript, enhancement, P5)

All
Other
enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: dse, Unassigned)

References

()

Details

:: Developer Documentation Request

      Request Type: Correction
     Gecko Version: unspecified
 Technical Contact: 

:: Details

This appears to be an inadvertent result of this revision:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter$compare?locale=en-US&to=1276191&from=1276185

Normally the typeof operator in this case would return "function" instead of "Function", but I am acknowledging that a bug in a previous implementation of JavaScript somewhere might exist that would cause the need to check for "Function" instead of "function" though I am not aware of such a bug.
You need to log in before you can comment on or make changes to this bug.