From 361759d179f6ac5c3dfbbb33f1f351347a1fcf9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herbert=20Voj=C4=8D=C3=ADk?= Date: Sun, 15 Aug 2010 01:13:54 +0200 Subject: [PATCH] Using Array.isArray for Array testing in findModulePath. --- src/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.js b/src/node.js index 2dcef799d11..9833e76108b 100644 --- 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) {