mirror of https://github.com/nodejs/node.git
assert that require() has a truthy path
parent
14e8f806de
commit
c93c99c7c3
|
@ -359,6 +359,7 @@ Module.prototype.load = function(filename) {
|
||||||
|
|
||||||
|
|
||||||
Module.prototype.require = function(path) {
|
Module.prototype.require = function(path) {
|
||||||
|
assert(path, 'missing path');
|
||||||
return Module._load(path, this);
|
return Module._load(path, this);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue