Browse Source

Using Array.isArray for Array testing in findModulePath.

v0.7.4-release
Herbert Vojčík 15 years ago
committed by Ryan Dahl
parent
commit
361759d179
  1. 2
      src/node.js

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) {

Loading…
Cancel
Save