Open hjerabek opened 4 years ago
IMO, the CommonJS module environment checks coded here, i.e.
typeof module === 'object' && module.exports
will raise an exception if module==null. They should be changed to
module==null
typeof module === 'object' && module && module.exports
You are right, it will raise an exception in this case. (I am wondering why the type of null is object, but this is how it is.) Is this case frequent?
null
IMO, the CommonJS module environment checks coded here, i.e.
will raise an exception if
module==null
. They should be changed to