Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fixes #952 #971

Merged
merged 6 commits into from

3 participants

@guyzmo

added support for fat arrow function syntax (cf #952)

guyzmo added some commits
@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+github@m0g.net>
e9e8186
@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).
38d14b4
@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+github@m0g.net>
c001e7c
@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+github@m0g.net>
86e32f1
@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+github@m0g.net>
33db139
@valueof valueof commented on the diff
src/stable/lex.js
@@ -153,6 +153,28 @@ for (var i = 0; i < 128; i++) {
i >= 48 && i <= 57; // 0-9
}
+// Object that handles postponed lexing verifications that checks the parsed
+// environment state
+function asyncTrigger() {
+ var _checks = [];
+ return {
+ id: function() {
+ return id;
@valueof Owner
valueof added a note

Where does this id come from?

@guyzmo
guyzmo added a note

oh, my! I forgot to remove it! I used it to profile uses of the asyncTrigger instances before I found out how I could make it a singleton.

@guyzmo
guyzmo added a note

(and id was a parameter of the asyncTrigger function)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@valueof
Owner

Please don't update this PR. I have already modified it locally—just a general cleanup, nothing major. This id question is the only one I've got so far so you could just explain in comments. Thanks!

@valueof valueof merged commit 33db139 into jshint:master
@mishoo

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?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 29, 2013
  1. @guyzmo

    added A LOT of tests

    guyzmo authored
    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+github@m0g.net>
  2. @guyzmo
  3. @guyzmo

    added line breaking error on 'return' statement with and without asi …

    guyzmo authored
    …option (when it's broken, fix it).
  4. @guyzmo

    added es3 config option and updated tests to match es3 ;

    guyzmo authored
    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+github@m0g.net>
  5. @guyzmo

    added support for asynchronous triggers defined in the lexer, but lau…

    guyzmo authored
    …nched in the parser for correct state context handling.
    
    removed jsonMode/jsonWarnings hacks for JSON parsing
    
    Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>
  6. @guyzmo

    added support for fat arrows ;

    guyzmo authored
    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+github@m0g.net>
Something went wrong with that request. Please try again.