We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
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
Sorry, something went wrong.
No branches or pull requests
IMO, the CommonJS module environment checks coded here, i.e.
will raise an exception if
module==null
. They should be changed toThe text was updated successfully, but these errors were encountered: