fixes #955: concise methods #975

wants to merge 7 commits into


None yet

2 participants


added support for concise methods (cf #955)

guyzmo added some commits Mar 22, 2013
@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 <>
@guyzmo guyzmo updated automatic comma insertion support (cf #950) 2980237
@guyzmo guyzmo added line breaking error on 'return' statement with and without asi …
…option (when it's broken, fix it).
@guyzmo guyzmo added es3 config option and updated tests to match es3 ;
made es5 the default and updated tests to remove es5 ;
added info message to tell about es5 being default ;
added functions to encapsulate management of current version state

Signed-off-by: Bernard `Guyzmo` Pratz <>
@guyzmo guyzmo added support for asynchronous triggers defined in the lexer, but lau…
…nched in the parser for correct state context handling.

removed jsonMode/jsonWarnings hacks for JSON parsing

Signed-off-by: Bernard `Guyzmo` Pratz <>
@guyzmo guyzmo added support for fat arrows ;
added application() function that handles parsing of arrow functions ;
updated functionparams/doFunction to support arrow functions ;
added tests ;

Signed-off-by: Bernard `Guyzmo` Pratz <>
@guyzmo guyzmo added support for consise methods declaration in objects
added tests

Signed-off-by: Bernard `Guyzmo` Pratz <>
@valueof valueof added a commit that closed this pull request Apr 9, 2013
@guyzmo guyzmo Added support for concise methods declaration in objects.
Closes GH-975.
Closes GH-955.
@valueof valueof closed this in 8c1cf12 Apr 9, 2013

This line fails when you have custom methods added to the Array.prototype. Could we change it to a plain for (instead of for-in?)

@jugglinmike jugglinmike added a commit to jugglinmike/jshint that referenced this pull request Oct 21, 2014
@guyzmo guyzmo Added support for concise methods declaration in objects.
Closes GH-975.
Closes GH-955.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment