jquery/jquery — pull request #1269 by eddiemonge (2013-05-13 20:47:50+00:00)
Title: If module is defined as null before jQuery, an error is thrown

If `module = null` is included before jQuery, an error is thrown because null is an object but module.exports is not a property of it.

This checks to make sure module is a truthy value before checking its properties.
typeof null = "object"
typeof {} = "object"
typeof null.prop = JS error
typeof {}.prop = undefined

Not entirely sure how to write a test for this. If someone wants to point me in a direction, I'll gladly try it out.