projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14e8f80
)
assert that require() has a truthy path
author
James Campos
<james.r.campos@gmail.com>
Wed, 9 Jan 2013 17:01:22 +0000
(09:01 -0800)
committer
isaacs
<i@izs.me>
Wed, 16 Jan 2013 18:49:19 +0000
(10:49 -0800)
lib/module.js
patch
|
blob
|
history
diff --git
a/lib/module.js
b/lib/module.js
index
ed25f92
..
1d9e5d1
100644
(file)
--- 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);
};