From: Eli Gassert Date: Mon, 15 Sep 2014 15:09:57 +0000 (-0400) Subject: In IE11 I'm seeing module being registered as type "object" but is null. This also... X-Git-Tag: 2.8.4~20^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80efc1f9a38bf1874fd7d4864fdda2e88fde522f;p=thirdparty%2Fmoment.git In IE11 I'm seeing module being registered as type "object" but is null. This also makes sure that, even if module is not undefined, it is also not null before checking property export. --- diff --git a/moment.js b/moment.js index 8558c186a..ff7998fb5 100644 --- a/moment.js +++ b/moment.js @@ -33,7 +33,7 @@ momentProperties = [], // check for nodeJS - hasModule = (typeof module !== 'undefined' && module.exports), + hasModule = (typeof module !== 'undefined' && module && module.exports), // ASP.NET json date format regex aspNetJsonRegex = /^\/?Date\((\-?\d+)/i,