rauschmaljharb Also "The term shim means roughly the same thing as polyfill." I'd say is incorrect. Or certainly not the original intention. A polyfill aims to be indistinguishable from the native functionality. A shim often brings its own API, own install process, and own side effects.
rauschmaljharb Of course the original context was a browser. So being in node muddles things slightly (ie. Authors in node would opt in to global method pollution, or pull a dangled method - promise is a great example)