Permalink
Browse files

removed script trimming in wsh.js

  • Loading branch information...
1 parent 84cba54 commit 051acc9abd3310a1d207776632a3d5600caba5cb @benblank committed Apr 27, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 env/wsh.js
View
@@ -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 = [];

1 comment on commit 051acc9

Owner

benblank commented on 051acc9 Apr 27, 2011

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.