Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Feb 24, 2015
  1. Handle ForStatement and ForInStatement with lexical declaration.

    authored
    Also, to make it explicit, constructing a lexical declaration (const or
    let) is separated from the common variable declaration (var).
    
    Refs #1065
  2. Formalize lexical declaration.

    authored
    This is mostly renaming so that the terms are aligned with the spec:
      ConstLetDeclaration -> LexicalDeclaration
      SourceElement -> StatementListItem
      sourceElement -> statement, sourceElements -> body
    
    Refs #1065
  3. Bei Zhang - Ikarienator

    Break fixture into smaller files

    ikarienator authored committed
    Splits `test.js` file into small files, with
    "`test/fixtures/{Category}/{Test Name}.{Resource Kind}.(js|json)`"
    naming convention. 7 <i>Resource Kind</i>s are used:
    
    1. `tree`: a JSON file representing the result of a parsing result.
    RegExps are stringified as `{}`.
    2. `tokens`: a JSON file representing the result of a tokenization
    result.
    3. `failure`: a JSON file representing an error as defined in the old
    `test/test.js` file. Field `tokenize` indicates whether the tests should
    invoke tokenizer instead of parser.
    4. `result`: a JSON file representing the result of an API test.
    5. (none): consists the original source code string of the test.js test
    case.
    6. `source`: an executable ES5 program defining a `source` variable in
    the global scope. Useful for unicode tests since escapes are visible.
    7. `run`: an executable ES5 program. Useful for API tests. The code will
    be `eval`ed and the result value is used to compare against the expected
    result of the test case.
    
    The migration simply names each test case with `migration_` followed by
    a number unique within the same folder.
    
    Closes #1025.
Commits on Feb 20, 2015
  1. Michael Rennie

    Tolerate unclosed block comment.

    mrennie authored committed
    Closes #1041
  2. Simplify punctuator scanning.

    authored
    Reduce the amount of repetition. Consistently use character check
    instead of character code throughout the function.
    No performance increase or regression was observed.
    
    Closes #1072
  3. Bei Zhang - Ikarienator

    ES6 classes support

    ikarienator authored committed
    Closes #1001
    Closes #1061
Commits on Feb 18, 2015
  1. Bei Zhang - Ikarienator

    ES6: support computed property names

    ikarienator authored committed
    Closes #1037
    Closes #1039
Commits on Feb 17, 2015
  1. Mike Sherov

    Introduce rest parameters for Function Expressions and Declarations

    mikesherov authored
    Still errors on rest parameters for arrow function expressions for now as those
    are a bit more involved and require a more significant refactor.
    
    Refs #1011
    Closes gh-1050
  2. Mike Sherov
Commits on Feb 16, 2015
  1. Brandon Mills

    Expand property method range and loc to include params

    btmills authored committed
    Previously, the range and loc for get, set, and shorthand methods
    inside object literal properties included only the method body,
    meaning a method's parameters were outside the range of their parent
    `FunctionExpression` node. This was happening because the
    `FunctionExpression` node wasn't being created until
    `parsePropertyFunction` was called, by which point the method's
    parameters had already been parsed. This PR solves the issue by
    creating the `FunctionExpression` node as soon as it determines that
    the property is a get, set, or shorthand method, then passing the
    node into `parsePropertyFunction`.
    
    Closes #1029
    Closes #1040
Commits on Feb 14, 2015
Commits on Feb 9, 2015
  1. Run Travis CI tests (container-based) with Node.js 0.12 (stable) and …

    authored
    …io.js.
    
    Also, remove running the tests with the old Node.js 0.8.
    
    Closes #1015.
  2. Bei Zhang - Ikarienator

    Better peekLineTerminator

    ikarienator authored committed
    Closes #1008
    Closes #1007
Commits on Feb 6, 2015
Commits on Feb 4, 2015
  1. Mike Sherov

    When consumeSemicolon fails to find a semicolon, don't consume anything.

    mikesherov authored
    This is a cherry-pick of cacaa95 to master, which was original proposed
    as a patch against the harmony branch.
    
    https://code.google.com/p/esprima/issues/detail?id=574
Commits on Jan 27, 2015
Commits on Jan 26, 2015
Commits on Jan 20, 2015
Commits on Jan 19, 2015
  1. Chris Rebert
Commits on Jan 18, 2015
Commits on Jan 16, 2015
  1. ES6 binary integer literal.

    authored
    Based on the previous work of Yusuke Suzuki.
    
    http://code.google.com/p/esprima/issues/detail?id=622
Commits on Jan 15, 2015
  1. ES6 octal integer literal.

    authored
    Based on the previous work of Yusuke Suzuki.
    
    https://code.google.com/p/esprima/issues/detail?id=621
Commits on Jan 12, 2015
Something went wrong with that request. Please try again.