eslint / espree

An Esprima-compatible JavaScript parser
BSD 2-Clause "Simplified" License
2.26k stars 189 forks source link

fix: don't recognize directives in ES3, allow parenthesized rest target #554

Closed mdjermanovic closed 1 year ago

mdjermanovic commented 1 year ago

Upgrades acorn dependency to v8.8.0 to include two bug fixes:

  1. In ES3, directives should not be recognized. issue: https://github.com/acornjs/acorn/issues/1126 fix: https://github.com/acornjs/acorn/commit/9c2cad5c9b51235a1933d45d7b5998849e6f8a7d
  2. Destructuring assignment target in rest properties can be parenthesized. issue: https://github.com/acornjs/acorn/issues/872 fix: https://github.com/acornjs/acorn/commit/fb4afdecf7ff588cc65ddef608d3e6e88e05edb5