this post was submitted on 22 Sep 2023
22 points (100.0% liked)

JavaScript

2008 readers
10 users here now

founded 1 year ago
MODERATORS
top 1 comments
sorted by: hot top controversial new old
[–] [email protected] 6 points 1 year ago

When there is no need for the polyfill it should do nothing. The odd thing to me is that the functions were used directly like a function from a library.

This comes from the days of competing slightly-different polyfills. If you depend on the behaviour of one specific polyfill you don't want to worry about some other package overwriting your polyfill with a different slightly incompatible one, thereby breaking your feature.

Slightly shocking that nobody is doing the maintenance to remove these old redundant polyfills tho.