From c93c99c7c359614c071fc0c4cd9cde0e729e712b Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 9 Jan 2013 09:01:22 -0800 Subject: [PATCH] assert that require() has a truthy path --- lib/module.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/module.js b/lib/module.js index ed25f92d11c..1d9e5d1d562 100644 --- a/lib/module.js +++ b/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); };