Use hasOwnProperty

This commit is contained in:
Kevin Sawicki
2014-10-08 08:38:54 -07:00
committed by Kevin Sawicki
parent 7b8a293f30
commit b91c25186f

View File

@@ -95,7 +95,7 @@ getCachedModulePath = (relativePath, parentModule) ->
return unless candidates?
for version, resolvedPath of candidates
if Module._cache[resolvedPath] and satisfies(version, range)
if Module._cache.hasOwnProperty(resolvedPath) and satisfies(version, range)
return resolvedPath
undefined