DEV Community

Discussion on: JS Types to Avoid Polyfilling

Collapse
 
nickytonline profile image
Nick Taylor

They probably mean it can’t be faithfully polyfilled because the polyfill can’t reproduce all of the functionality expected. There may be parts of it that can’t be polyfilled, so instead of shimming it, they are shammed. Just a guess as I haven’t dug into the polyfills for Symbols and BigInt.

For some context:

Collapse
 
cerchie profile image
Lucia Cerchie • Edited

Can I just say that I love that JS devs have different definitions for the words "shim" and "sham". This looks like a reasonable answer to me!