Skip to content

Commit

Permalink
Fix lint complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Mar 2, 2020
1 parent e75185f commit c6f08e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acorn/src/parseutil.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ pp.strictDirective = function(start) {
skipWhiteSpace.lastIndex = start + match[0].length
let spaceAfter = skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length
let next = this.input.charAt(end)
return next == ";" || next == "}" ||
return next === ";" || next === "}" ||
(lineBreak.test(spaceAfter[0]) &&
!(/[(`\.\[+\-\/*%<>=,?^&]/.test(next) || next == "!" && this.input.charAt(end + 1) == "="))
!(/[(`.[+\-/*%<>=,?^&]/.test(next) || next === "!" && this.input.charAt(end + 1) === "="))
}
start += match[0].length

Expand Down

0 comments on commit c6f08e8

Please sign in to comment.