mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Fix test failure re: "Module._cache.hasOwnProperty is not a function"
Example build failure:
https://ci.appveyor.com/project/Atom/atom/build/job/fvtxos5ys6a5lek1#L634
As of Node 8.0.0, Module._cache.hasOwnProperty is no longer a function:
403b89e72b
This commit is contained in:
@@ -189,7 +189,7 @@ resolveModulePath = (relativePath, parentModule) ->
|
||||
return unless candidates?
|
||||
|
||||
for version, resolvedPath of candidates
|
||||
if Module._cache.hasOwnProperty(resolvedPath) or isCorePath(resolvedPath)
|
||||
if Module._cache[resolvedPath] or isCorePath(resolvedPath)
|
||||
return resolvedPath if satisfies(version, range)
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user