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:
1b589be
)
Using Array.isArray for Array testing in findModulePath.
author
Herbert Vojčík
<herby@mailbox.sk>
Sat, 14 Aug 2010 23:13:54 +0000
(
01:13
+0200)
committer
Ryan Dahl
<ry@tinyclouds.org>
Sun, 15 Aug 2010 18:05:48 +0000
(11:05 -0700)
src/node.js
patch
|
blob
|
history
diff --git
a/src/node.js
b/src/node.js
index 2dcef799d110a35f197502be3bcbb4f3df3de767..9833e76108bd64b5d3d5918d2d225c4a9b747000 100644
(file)
--- a/
src/node.js
+++ b/
src/node.js
@@
-152,7
+152,7
@@
var module = (function () {
/* Sync unless callback given */
function findModulePath (id, dirs, callback) {
- process.assert(
dirs.constructor == Array
);
+ process.assert(
Array.isArray(dirs)
);
if (/^https?:\/\//.exec(id)) {
if (callback) {