Using Array.isArray for Array testing in findModulePath.

This commit is contained in:
Herbert Vojčík 2010-08-15 01:13:54 +02:00 committed by Ryan Dahl
parent 1b589be1d6
commit 361759d179

View File

@ -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) {