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)
Can you rebase this PR, please? I think three commits (0fe65a9, etc.) didn't get in with #947.
PR rebased, tests passed
added A LOT of tests
renamed isMozOrESNext to isAfterESNext;
refactored ESnext/Moz support to raise errors on future features;
fixed several parsing issues
Signed-off-by: Bernard `Guyzmo` Pratz <email@example.com>