From: Eddie Monge Date: Mon, 13 May 2013 20:10:36 +0000 (-0700) Subject: Fix #13789: Don't throw when module === null. Close gh-1269. X-Git-Tag: 2.0.1~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eabb56c27484cbffd2ce4951f661df83c91e5d7a;p=jquery.git Fix #13789: Don't throw when module === null. Close gh-1269. --- diff --git a/src/exports.js b/src/exports.js index 37b797075..2d5c56f8a 100644 --- a/src/exports.js +++ b/src/exports.js @@ -1,4 +1,4 @@ -if ( typeof module === "object" && typeof module.exports === "object" ) { +if ( typeof module === "object" && module && typeof module.exports === "object" ) { // Expose jQuery as module.exports in loaders that implement the Node // module pattern (including browserify). Do not create the global, since // the user will be storing it themselves locally, and globals are frowned