tmpvar/jsdom — pull request #966 by SegFaultx64 (2014-12-02 18:04:31+00:00)
Title: One line fix accounting for mocking with Jest 

Mocking with Jest (and possibly some other weird cases) causes the module.parent to be undefined. If this isn't checked the module breaks on require. I am not entirely sure if this is the right place to fix this, the Jest module loader might be better, but this is the only module I have encountered that does this.