mirror of
https://gitdl.cn/https://github.com/chakralinux/gtk.git
synced 2025-01-24 01:42:13 +08:00
12 lines
426 B
Diff
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
|