Join GitHub today
padStart/padEnd in current safari is buggy and shouldnt be used #280
The currently released version of safari has a bug in padStart padEnd that causes it to return null.
https://developer.apple.com/safari/technology-preview/release-notes/ fix in preview 15
While it says its rare we are hitting it about 40% of the time. As far as I can tell there isn't a externally facing way to force a polyfill to override native.
referenced this issue
Feb 8, 2017
I was hitting this also on iOS (weirdly it doesn't happen so much when the Developer Tools are connected, but much more when they are not); lost over an hour to finding out what the issue in my code was (not least because I couldn't debug it with the devtools and it was Mobile Safari so I had to resort to
A buggyfill for this would have saved me a lot of time.