Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Using Array.isArray for Array testing in findModulePath.

  • Loading branch information...
commit 361759d179f6ac5c3dfbbb33f1f351347a1fcf9f 1 parent 1b589be
@herby herby authored ry committed
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) {
Please sign in to comment.
Something went wrong with that request. Please try again.