Skip to content

Commit

Permalink
null check on module.exports.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelangelo Jong committed Mar 5, 2015
1 parent 9e0042b commit e265208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ if (typeof define === 'function' && define.amd) {
define(function() {
return Generator;
});
} else if (module && typeof module === 'object') {
} else if (module && typeof module === 'object' && typeof exports === 'object') {
// Node/CommonJS
module.exports = Generator;
} else {
Expand Down

0 comments on commit e265208

Please sign in to comment.