Closed Bug 1394569 Opened 7 years ago Closed 4 years ago

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

Categories

(Developer Documentation Graveyard :: JavaScript, enhancement, P5)

All
Other
enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

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.
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.