Open Bug 1301501 Opened 3 years ago Updated 3 years ago

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

Categories

(Developer Documentation :: JavaScript, defect, P5)

All
Other
defect

Tracking

(Not tracked)

UNCONFIRMED

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
You need to log in before you can comment on or make changes to this bug.