TehShrike / deepmerge

A library for deep (recursive) merging of Javascript objects
MIT License
2.75k stars 216 forks source link

Prevent getEnumerableOwnPropertySymbols from throwing when target.propertyIsEnumerable is undefined #252

Closed wildlyinaccurate closed 1 year ago

wildlyinaccurate commented 1 year ago

This changeset prevents getEnumerableOwnPropertySymbols() from throwing when target.propertyIsEnumerable is undefined. It follows the same convention of Object.propertyIsEnumerable.call(target, key) that is used a few lines below.

TehShrike commented 1 year ago

Published as 4.3.0