Closed shebson closed 9 years ago
Thanks for taking the time to submit this and sorry for slow reply, not sure how I didn't see this before...
Have you come across this case where this addition has helped you? I can't think of a case where module.exports
would become sealed or immutable - is this just being careful?
This came up for me in a React app. React elements are frozen at creation, and I imagine this would also be an issue for people using ImmutableJS.
Good to know, thanks!
Attempting to extend a non-extensible object results in a type error. This PR checks that module.exports is extensible before adding set and get.