diff options
Diffstat (limited to 'deps/npm/node_modules/glob/glob.js')
-rw-r--r-- | deps/npm/node_modules/glob/glob.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/npm/node_modules/glob/glob.js b/deps/npm/node_modules/glob/glob.js index 176be02f4cb..7903be18fc2 100644 --- a/deps/npm/node_modules/glob/glob.js +++ b/deps/npm/node_modules/glob/glob.js @@ -84,6 +84,11 @@ function Glob (pattern, options, cb) { return new Glob(pattern, options, cb) } + if (typeof options === "function") { + cb = options + options = null + } + if (typeof cb === "function") { this.on("error", cb) this.on("end", function (matches) { |