esprima icon indicating copy to clipboard operation
esprima copied to clipboard

ECMAScript parsing infrastructure for multipurpose analysis

Results 107 esprima issues
Sort by recently updated
recently updated
newest added

Support for class fields (currently stage-3 proposal) is missing. The class fields proposal is currently in Stage 3, and has a working implementation in Chrome, as well as being implemented...

This pr solved the #2000 problem.

### Steps to reproduce 1) Go to https://esprima.org/demo/parse.html# 2) The cursor location seems to be incorrect while editing the live source code area.

1. support pure ESM release 2. add sideEffects test 3. adjust directory layout

This PR fixes #2053. * `ExportAllDeclaration` is updated to have member `exported`. * `parseExportDeclaration` is updated to accept `as someIdentifier` in `export * from 'some-module'` * tests are updated *...

Take the following code as an example ``` source = "const obj = { async* generator() {}};" esprima.parseScript(source, { tolerant: true })) code = escodegen.generate(ast); console.log(code); ``` The output is:...

Esprima (correctly) rejects expressions like -1**2. However, expressions like (-1)**2 are valid but still rejected. This commit fixes this issue by identifying when the left operand is parenthesized. Fixes https://github.com/jquery/esprima/issues/1981