With the introduction of the polyObjGetOwnPropertyDescriptor this causes an excessive amount of additional code to always be referenced for several functions.
Why?
This polyfill uses
- objPropertyIsEnumerable, which then includes _objPropertyIsEnum and the GETTER_NAME and SETTER_NAME constants
the objGetOwnPropertyDescriptor is indirectly included via polyObjHasOwn (which is the fallback of objHasOwn) where objHasOwn is not referenced from objForEachKey
And based on Can I Use it appears that the need for this polyfill in an ES5 environment is unnecessary.
It should therefore be removed or extremely reduced to remove the excessive code bloat.