Skip to content
Browse files

Using Array.isArray for Array testing in findModulePath.

  • Loading branch information...
1 parent 1b589be commit 361759d179f6ac5c3dfbbb33f1f351347a1fcf9f @herby herby committed with ry
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/node.js
View
2 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) {

0 comments on commit 361759d

Please sign in to comment.
Something went wrong with that request. Please try again.