From: Herbert Vojčík Date: Sat, 14 Aug 2010 23:13:54 +0000 (+0200) Subject: Using Array.isArray for Array testing in findModulePath. X-Git-Tag: v0.2.0~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=361759d179f6ac5c3dfbbb33f1f351347a1fcf9f;p=platform%2Fupstream%2Fnodejs.git Using Array.isArray for Array testing in findModulePath. --- diff --git a/src/node.js b/src/node.js index 2dcef799d..9833e7610 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) {