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
#280
padStart/padEnd is buggy in some versions of Safari.
polyfill of core-js is available in the desktop Safari.
I encountered the bug in the mobile Safari so please polyfill in the mobile too.
I just encountered the bug.
I'll try to refine the reproductive environment and working example when you request.
I'm using core-js via babel.
iOS version
It happens in iOS 10.2.1,
It doesn't happen in iOS 8.x, 9.x, 10.3.x, 11.x,
(as far as I tested)
This runs successfully.
But run about 20+ fetches in parallel, padStart returns buggy result("null0", "null1", ...).
workaround
I read #280,
and I thought that the RegExp test /Version\/10\.\d+(\.\d+)? Safari\//
only matches to desktop Safari.
the example of userAgent of mobile Safari Mozilla/5.0 (iPhone; CPU iPhone OS 10_2_1 like Mac OS X) AppleWebKit/602.4.6 (KHTML, like Gecko) Version/10.0 Mobile/14D27 Safari/602.1
So I just added .* as workaround. /Version\/10\.\d+(\.\d+)?.* Safari\//
And it runs successfully.
so it seems to fix when polyfill in the mobile too.
The text was updated successfully, but these errors were encountered:
summary
#280
padStart/padEnd is buggy in some versions of Safari.
polyfill of core-js is available in the desktop Safari.
I encountered the bug in the mobile Safari so please polyfill in the mobile too.
I just encountered the bug.
I'll try to refine the reproductive environment and working example when you request.
I'm using core-js via babel.
iOS version
It happens in iOS 10.2.1,
It doesn't happen in iOS 8.x, 9.x, 10.3.x, 11.x,
(as far as I tested)
situation when I encountered it
fetch serial zero-padded number files.
This runs successfully.
But run about 20+ fetches in parallel, padStart returns buggy result("null0", "null1", ...).
workaround
I read #280,
and I thought that the RegExp test
/Version\/10\.\d+(\.\d+)? Safari\//
only matches to desktop Safari.
the example of userAgent of mobile Safari
Mozilla/5.0 (iPhone; CPU iPhone OS 10_2_1 like Mac OS X) AppleWebKit/602.4.6 (KHTML, like Gecko) Version/10.0 Mobile/14D27 Safari/602.1
So I just added
.*
as workaround./Version\/10\.\d+(\.\d+)?.* Safari\//
And it runs successfully.
so it seems to fix when polyfill in the mobile too.
The text was updated successfully, but these errors were encountered: