You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new version of Firefox (52) broke the parseInt() behavior on the test if (parseInt(ws + '08') !== 8 || parseInt(ws + '0x16') !== 22) (line 1956) because of wrong whitespace characters ; returning NaN for both instead of 8 and 22.
Thus parseInt() is redefined by your shim. However, the case parseInt() (empty parameter, or undefined, or null) throws an exception while using trim(string) (line 1962) instead of returning NaN (as default behavior) - trim() should never be called with undefined or null as parameter.
This fixes the issue : if (str === undefined || str === null) str = ""; (to add before line 1962) ; Do not attempt to return NaN directly instead as it has bad side effects on some libraries (such as PerfectScrollbar) - I don't know why but it does.
The new version of Firefox (52) broke the parseInt() behavior on the test
if (parseInt(ws + '08') !== 8 || parseInt(ws + '0x16') !== 22)
(line 1956) because of wrong whitespace characters ; returning NaN for both instead of 8 and 22.Thus parseInt() is redefined by your shim. However, the case
parseInt()
(empty parameter, or undefined, or null) throws an exception while usingtrim(string)
(line 1962) instead of returning NaN (as default behavior) - trim() should never be called with undefined or null as parameter.This fixes the issue :
if (str === undefined || str === null) str = "";
(to add before line 1962) ; Do not attempt to return NaN directly instead as it has bad side effects on some libraries (such as PerfectScrollbar) - I don't know why but it does.Full example:
The redefined function parseFloat() should have the same fix too (before line 1974).
The text was updated successfully, but these errors were encountered: