#139·umd

Checks for CommonJS module environments are not fail-safe

Author: hjerabekCreated Jul 5, 2020Updated Jun 15, 2022

IMO, the CommonJS module environment checks coded here, i.e.

javascript
typeof module === 'object' && module.exports

will raise an exception if module==null. They should be changed to

javascript
typeof module === 'object' && module && module.exports