Hacker News new | ask | show | jobs
by tedunangst 1007 days ago
But why are we polyfilling a function that exists in every version of node? When did this code not just work after installation that it required a polyfill?
1 comments

My best guess is that the code was used in non-node environments.

It wasn’t and isn’t uncommon to pull down a dependency from npm and expect it to work in multiple runtimes.