gtk/atom/fix-node8.patch

12 lines
426 B
Diff
Raw Permalink Normal View History

2018-06-18 18:02:06 +08:00
--- 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