mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Use hasOwnProperty
This commit is contained in:
committed by
Kevin Sawicki
parent
7b8a293f30
commit
b91c25186f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user