Closed Bug 1301501 Opened 4 years ago Closed 5 months ago

polyfill uses != to check typeof assign to "function" vs !==

Categories

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

All
Other
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: gary.k.hollingshead, Unassigned)

References

()

Details

:: Developer Documentation Request

      Request Type: Correction
     Gecko Version: unspecified
 Technical Contact: 

:: Details

I could be wrong, but the line in the assign polyfill :
if (typeof Object.assign != "function")
should be 
if (typeof Object.assign !== "function")

If not, I'd love to know why.
Component: General → JavaScript
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: 5 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.