Move object rest/spread tests to test/fixture/es2018

Refs #1588
Closes gh-1763
30 files changed
tree: 67907a2698e539896c9b00775f208b044205e1ea
  1. bin/
  2. dist/
  3. docs/
  4. src/
  5. test/
  6. tools/
  7. .editorconfig
  8. .gitignore
  9. .npmignore
  10. .travis.yml
  11. appveyor.yml
  12. ChangeLog
  13. circle.yml
  14. CONTRIBUTING.md
  15. LICENSE.BSD
  16. package.json
  17. README.md
  18. webpack.config.js
README.md

NPM version npm download Build Status Coverage Status

Esprima (esprima.org, BSD license) is a high performance, standard-compliant ECMAScript parser written in ECMAScript (also popularly known as JavaScript). Esprima is created and maintained by Ariya Hidayat, with the help of many contributors.

Features

API

Esprima can be used to perform lexical analysis (tokenization) or syntactic analysis (parsing) of a JavaScript program.

A simple example on Node.js REPL:

> var esprima = require('esprima');
> var program = 'const answer = 42';

> esprima.tokenize(program);
[ { type: 'Keyword', value: 'const' },
  { type: 'Identifier', value: 'answer' },
  { type: 'Punctuator', value: '=' },
  { type: 'Numeric', value: '42' } ]
  
> esprima.parse(program);
{ type: 'Program',
  body:
   [ { type: 'VariableDeclaration',
       declarations: [Object],
       kind: 'const' } ],
  sourceType: 'script' }

For more information, please read the complete documentation.