Skip to content

Commit

Permalink
Merge 2aea3b1 into 5363bbe
Browse files Browse the repository at this point in the history
  • Loading branch information
JSMonk committed Aug 7, 2019
2 parents 5363bbe + 2aea3b1 commit bdc6882
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/fsevents-handler.js
Expand Up @@ -164,9 +164,11 @@ const couldConsolidate = (path) => {

return false;
};

const isConstructor = ({ prototype }) =>
prototype !== undefined && prototype.constructor !== undefined;
// returns boolean indicating whether fsevents can be used
const canUse = () => fsevents && FSEventsWatchers.size < 128;
const canUse = () =>
fsevents && FSEventsWatchers.size < 128 && isConstructor(fsevents);

// determines subdirectory traversal levels from root to path
const depth = (path, root) => {
Expand Down

0 comments on commit bdc6882

Please sign in to comment.