Looking only for a top-level module that is non-null incorrectly flags e.g. the module function QUnit 1.x. This restricts it to checking that both module and exports exists and that module.exports === exports, as is the case in a commonjs environment.
Looking only for a top-level
module
that is non-null incorrectly flags e.g. themodule
function QUnit 1.x. This restricts it to checking that bothmodule
andexports
exists and thatmodule.exports === exports
, as is the case in a commonjs environment.