From eabb56c27484cbffd2ce4951f661df83c91e5d7a Mon Sep 17 00:00:00 2001 From: Eddie Monge Date: Mon, 13 May 2013 13:10:36 -0700 Subject: [PATCH] Fix #13789: Don't throw when module === null. Close gh-1269. --- src/exports.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5