#Error Destructuring

5 messages · Page 1 of 1 (latest)

cloud wind
#

this isn't destructuring, this is spreading
spreading only copies enumerable properties, so if message happens to not be enumerable then it won't be copied, and message isn't enumerable by default

ember ledge
cloud wind
#

if err is any arbitrary error you don't have control over, why would you want to make it enumerable?

#

why are you spreading it at all, really?

ember ledge
#

thanks buddy , I am just asking out of the criousity