Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
removed script trimming in wsh.js
  • Loading branch information
benblank committed Apr 27, 2011
1 parent 84cba54 commit 051acc9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions env/wsh.js
Expand Up @@ -143,8 +143,7 @@
}
}

// trim junk character; not sure where it comes from
JSHINT(script.substr(0, script.length - 1), options, globals);
JSHINT(script, options, globals);

var data = JSHINT.data();
var lines = [];
Expand Down

1 comment on commit 051acc9

@benblank
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wrapper was originally written for JSLint, which generated spurious errors if the final character of the script was not trimmed off. JSHint doesn't seem to suffer this problem.

Please sign in to comment.