assert that require() has a truthy path

pull/24504/head
James Campos 2013-01-09 09:01:22 -08:00 committed by isaacs
parent 14e8f806de
commit c93c99c7c3
1 changed files with 1 additions and 0 deletions

View File

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