Permalink
Browse files

`warn` function body moved into a new `do_warn` function; `warn` itse…

…lf is turned into a wrapper
  • Loading branch information...
1 parent da547aa commit 3c738d42f3bb3b789f4d7a4a8ab7cb697ce35c70 @penartur committed May 25, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 jslint.js
View
@@ -1114,7 +1114,7 @@ var JSLINT = (function () {
};
}
- function warn(message, offender, a, b, c, d) {
+ function do_warn(message, offender, a, b, c, d) {
var character, line, warning;
offender = offender || next_token; // ~~
line = offender.line || 0;
@@ -1144,6 +1144,10 @@ var JSLINT = (function () {
return warning;
}
+ function warn(message, offender, a, b, c, d) {
+ return do_warn(message, offender, a, b, c, d);
+ }
+
function warn_at(message, line, character, a, b, c, d) {
return warn(message, {
line: line,

0 comments on commit 3c738d4

Please sign in to comment.