Skip to content

Commit

Permalink
[[CHORE]] Revert "Add codes to errors generated by quit()"
Browse files Browse the repository at this point in the history
JSHint's emission of the `code` property of errors from the internal
`quit` function is derived from code first contributed by Nikolay S.
Frantsev <privatbank@frantsev.ru>. That contributor could not be reached
to sign JSHint's Contributor License Agreement. Revert their
contribution to the application logic (preserving the corresponding
MIT-licensed test code) so that it may be re-written under the terms of
the Contributor License Agreement.

Revert the changes introduced by
537dcbd
  • Loading branch information
jugglinmike committed Aug 2, 2020
1 parent e6ad7a2 commit c7a7c66
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/jshint.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,6 @@ var JSHINT = (function() {
character: token.from,
message: message + " (" + percentage + "% scanned).",
raw: message,
code: code,
a: a,
b: b
};
Expand Down Expand Up @@ -6526,7 +6525,6 @@ var JSHINT = (function() {
JSHINT.errors.push({
scope : "(main)",
raw : err.raw,
code : err.code,
reason : err.reason,
line : err.line || nt.line,
character : err.character || nt.from
Expand Down

0 comments on commit c7a7c66

Please sign in to comment.