Tags: lovelib/acorn
Tags
Version 5.3.0 ### Bug fixes Fix parsing of floating point literals with leading zeroes in loose mode. Allow duplicate property names in object patterns. Don't allow static class methods named `prototype`. Disallow async functions directly under `if` or `else`. Parse right-hand-side of `for`/`of` as an assignment expression. Stricter parsing of `for`/`in`. Don't allow unicode escapes in contextual keywords. ### New features Parsing class members was factored into smaller methods to allow plugins to hook into it.
Version 5.2.0 ### Bug fixes Fix token context tracking for `class` and `function` in property-name position. Make sure `%*` isn't parsed as a valid operator. The `full` and `fullAncestor` walkers no longer visit nodes multiple times. Allow shorthand properties `get` and `set` to be followed by default values. Disallow `super` when not in callee or object position. ### New features Support [`directive` property](estree/estree@b3de58c...1da8e60) on directive expression statements.
Version 5.1.0 ### Bug fixes Fix tokenizing of regexps in an object-desctructuring `for`/`of` loop and after `yield`. Parse zero-prefixed numbers with non-octal digits as decimal. Allow object/array patterns in rest parameters. Don't error when `yield` is used as a property name. Allow `async` as a shorthand object property. Make the ES module version of the loose parser actually work. ### New features Implement the [template literal revision proposal](https://github.com/tc39/proposal-template-literal-revision) for ES9. New walker functions `full` and `fullAncestor`.
PreviousNext