diff options
-rw-r--r-- | share/server/util.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/server/util.js b/share/server/util.js index 6afb38b6..f6fa60bb 100644 --- a/share/server/util.js +++ b/share/server/util.js @@ -46,7 +46,7 @@ var resolveModule = function(names, mod, root) { } else if (root) { mod = {current : root}; } - if (!mod.current[n]) { + if (mod.current[n] === undefined) { throw ["error", "invalid_require_path", 'Object has no property "'+n+'". '+JSON.stringify(mod.current)]; } return resolveModule(names, { |