You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Theres nothing in the spec that says that functions can't be passed to Object.assign as either source or target (the abstract operation ToObject leaves functions unmodified), but this polyfill throws for either case. :(
It also wrongly throws if passed primitives, when in fact it should call Object() on them and use that result in their place.
The text was updated successfully, but these errors were encountered:
webbedspace
changed the title
Object.assign throws if one argument is a function
Polyfill wrongly throws if one argument is a function
Jul 19, 2014
Theres nothing in the spec that says that functions can't be passed to Object.assign as either source or target (the abstract operation ToObject leaves functions unmodified), but this polyfill throws for either case. :(
It also wrongly throws if passed primitives, when in fact it should call Object() on them and use that result in their place.
The text was updated successfully, but these errors were encountered: