Using Array.isArray for Array testing in findModulePath.
This commit is contained in:
parent
1b589be1d6
commit
361759d179
@ -152,7 +152,7 @@ var module = (function () {
|
|||||||
|
|
||||||
/* Sync unless callback given */
|
/* Sync unless callback given */
|
||||||
function findModulePath (id, dirs, callback) {
|
function findModulePath (id, dirs, callback) {
|
||||||
process.assert(dirs.constructor == Array);
|
process.assert(Array.isArray(dirs));
|
||||||
|
|
||||||
if (/^https?:\/\//.exec(id)) {
|
if (/^https?:\/\//.exec(id)) {
|
||||||
if (callback) {
|
if (callback) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user