gtk/atom/fix-node8.patch
2018-06-18 11:02:06 +01:00

12 lines
426 B
Diff

--- a/src/module-cache.coffee
+++ b/src/module-cache.coffee
@@ -189,7 +189,7 @@ resolveModulePath = (relativePath, parentModule) ->
return unless candidates?
for version, resolvedPath of candidates
- if Module._cache.hasOwnProperty(resolvedPath) or isCorePath(resolvedPath)
+ if Boolean(Module._cache[resolvedPath]) or isCorePath(resolvedPath)
return resolvedPath if satisfies(version, range)
return