Skip to content
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.

Commit

Permalink
Allow disabling logging with loggerFn: false
Browse files Browse the repository at this point in the history
  • Loading branch information
j-f1 committed Aug 9, 2017
1 parent 6505f65 commit 4feeb32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ function parse(code, options) {
*/
if (typeof options.loggerFn === "function") {
extra.log = options.loggerFn;
} else if (options.loggerFn === false) {
/** */ // eslint-disable-line valid-jsdoc
extra.log = () => {};
}

}
Expand Down

0 comments on commit 4feeb32

Please sign in to comment.