Navigation Menu

Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Using Array.isArray for Array testing in findModulePath.
Browse files Browse the repository at this point in the history
  • Loading branch information
Herbert Vojčík authored and ry committed Aug 15, 2010
1 parent 1b589be commit 361759d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 361759d

Please sign in to comment.