Better error reporting #946

merged 1 commit into from Mar 30, 2013

2 participants


Updated support of esnext/moz options, by parsing all features anyway and report warnings on use of features without the correct options.
Fixed parsing of pure JSON when in esnext/moz modes

(based on PR #943)


I have updated the tests so each parser.js unit test is run towards old JS/es5/esnext/moz.
I have found a few bugs I corrected in aa11638 changeset.

This branch is merged with the other PR that I have opened (cf #947 #943 #942)

JSHint member

Can you rebase this PR, please? I think three commits (0fe65a9, etc.) didn't get in with #947.


PR rebased, tests passed

@guyzmo guyzmo added A LOT of tests
renamed isMozOrESNext to isAfterESNext;
added isAfterES5;
refactored ESnext/Moz support to raise errors on future features;
fixed several parsing issues

Signed-off-by: Bernard `Guyzmo` Pratz <>
@valueof valueof merged commit e9e8186 into jshint:master Mar 30, 2013

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment