Browse Source

assert that require() has a truthy path

v0.9.7-release
James Campos 12 years ago
committed by isaacs
parent
commit
c93c99c7c3
  1. 1
      lib/module.js

1
lib/module.js

@ -359,6 +359,7 @@ Module.prototype.load = function(filename) {
Module.prototype.require = function(path) {
assert(path, 'missing path');
return Module._load(path, this);
};

Loading…
Cancel
Save