Skip to content

[Bug] Excessive increase in 0.12.0/0.12.1 which introduced a polyfill for objGetOwnPropertyDescriptor #403

@nev21

Description

@nev21

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.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions