| 1 | ## 8.16.0 (2026-02-19)
|
|---|
| 2 |
|
|---|
| 3 | ### New features
|
|---|
| 4 |
|
|---|
| 5 | The `sourceType` option can now be set to `"commonjs"` to have the parser treat the top level scope as a function scope.
|
|---|
| 6 |
|
|---|
| 7 | Add support for Unicode 17.
|
|---|
| 8 |
|
|---|
| 9 | ### Bug fixes
|
|---|
| 10 |
|
|---|
| 11 | Don't recognize `await using` as contextual keywords when followed directly by a backslash.
|
|---|
| 12 |
|
|---|
| 13 | Fix an issue where the parser would allow `return` statements in `static` blocks when `allowReturnOutsideFunction` was enabled.
|
|---|
| 14 |
|
|---|
| 15 | Properly reject `using` declarations that appear directly in `switch` or `for` head scopes.
|
|---|
| 16 |
|
|---|
| 17 | Fix some corner case issues in the recognition of `using` syntax.
|
|---|
| 18 |
|
|---|
| 19 | ## 8.15.0 (2025-06-08)
|
|---|
| 20 |
|
|---|
| 21 | ### New features
|
|---|
| 22 |
|
|---|
| 23 | Support `using` and `await using` syntax.
|
|---|
| 24 |
|
|---|
| 25 | The `AnyNode` type is now defined in such a way that plugins can extend it.
|
|---|
| 26 |
|
|---|
| 27 | ### Bug fixes
|
|---|
| 28 |
|
|---|
| 29 | Fix an issue where the `bigint` property of literal nodes for non-decimal bigints had the wrong format.
|
|---|
| 30 |
|
|---|
| 31 | The `acorn` CLI tool no longer crashes when emitting a tree that contains a bigint.
|
|---|
| 32 |
|
|---|
| 33 | ## 8.14.1 (2025-03-05)
|
|---|
| 34 |
|
|---|
| 35 | ### Bug fixes
|
|---|
| 36 |
|
|---|
| 37 | Fix an issue where `await` expressions in class field initializers were inappropriately allowed.
|
|---|
| 38 |
|
|---|
| 39 | Properly allow await inside an async arrow function inside a class field initializer.
|
|---|
| 40 |
|
|---|
| 41 | Mention the source file name in syntax error messages when given.
|
|---|
| 42 |
|
|---|
| 43 | Properly add an empty `attributes` property to every form of `ExportNamedDeclaration`.
|
|---|
| 44 |
|
|---|
| 45 | ## 8.14.0 (2024-10-27)
|
|---|
| 46 |
|
|---|
| 47 | ### New features
|
|---|
| 48 |
|
|---|
| 49 | Support ES2025 import attributes.
|
|---|
| 50 |
|
|---|
| 51 | Support ES2025 RegExp modifiers.
|
|---|
| 52 |
|
|---|
| 53 | ### Bug fixes
|
|---|
| 54 |
|
|---|
| 55 | Support some missing Unicode properties.
|
|---|
| 56 |
|
|---|
| 57 | ## 8.13.0 (2024-10-16)
|
|---|
| 58 |
|
|---|
| 59 | ### New features
|
|---|
| 60 |
|
|---|
| 61 | Upgrade to Unicode 16.0.
|
|---|
| 62 |
|
|---|
| 63 | ## 8.12.1 (2024-07-03)
|
|---|
| 64 |
|
|---|
| 65 | ### Bug fixes
|
|---|
| 66 |
|
|---|
| 67 | Fix a regression that caused Acorn to no longer run on Node versions <8.10.
|
|---|
| 68 |
|
|---|
| 69 | ## 8.12.0 (2024-06-14)
|
|---|
| 70 |
|
|---|
| 71 | ### New features
|
|---|
| 72 |
|
|---|
| 73 | Support ES2025 duplicate capture group names in regular expressions.
|
|---|
| 74 |
|
|---|
| 75 | ### Bug fixes
|
|---|
| 76 |
|
|---|
| 77 | Include `VariableDeclarator` in the `AnyNode` type so that walker objects can refer to it without getting a type error.
|
|---|
| 78 |
|
|---|
| 79 | Properly raise a parse error for invalid `for`/`of` statements using `async` as binding name.
|
|---|
| 80 |
|
|---|
| 81 | Properly recognize \"use strict\" when preceded by a string with an escaped newline.
|
|---|
| 82 |
|
|---|
| 83 | Mark the `Parser` constructor as protected, not private, so plugins can extend it without type errors.
|
|---|
| 84 |
|
|---|
| 85 | Fix a bug where some invalid `delete` expressions were let through when the operand was parenthesized and `preserveParens` was enabled.
|
|---|
| 86 |
|
|---|
| 87 | Properly normalize line endings in raw strings of invalid template tokens.
|
|---|
| 88 |
|
|---|
| 89 | Properly track line numbers for escaped newlines in strings.
|
|---|
| 90 |
|
|---|
| 91 | Fix a bug that broke line number accounting after a template literal with invalid escape sequences.
|
|---|
| 92 |
|
|---|
| 93 | ## 8.11.3 (2023-12-29)
|
|---|
| 94 |
|
|---|
| 95 | ### Bug fixes
|
|---|
| 96 |
|
|---|
| 97 | Add `Function` and `Class` to the `AggregateType` type, so that they can be used in walkers without raising a type error.
|
|---|
| 98 |
|
|---|
| 99 | Make sure `onToken` get an `import` keyword token when parsing `import.meta`.
|
|---|
| 100 |
|
|---|
| 101 | Fix a bug where `.loc.start` could be undefined for `new.target` `meta` nodes.
|
|---|
| 102 |
|
|---|
| 103 | ## 8.11.2 (2023-10-27)
|
|---|
| 104 |
|
|---|
| 105 | ### Bug fixes
|
|---|
| 106 |
|
|---|
| 107 | Fix a bug that caused regular expressions after colon tokens to not be properly tokenized in some circumstances.
|
|---|
| 108 |
|
|---|
| 109 | ## 8.11.1 (2023-10-26)
|
|---|
| 110 |
|
|---|
| 111 | ### Bug fixes
|
|---|
| 112 |
|
|---|
| 113 | Fix a regression where `onToken` would receive 'name' tokens for 'new' keyword tokens.
|
|---|
| 114 |
|
|---|
| 115 | ## 8.11.0 (2023-10-26)
|
|---|
| 116 |
|
|---|
| 117 | ### Bug fixes
|
|---|
| 118 |
|
|---|
| 119 | Fix an issue where tokenizing (without parsing) an object literal with a property named `class` or `function` could, in some circumstance, put the tokenizer into an invalid state.
|
|---|
| 120 |
|
|---|
| 121 | Fix an issue where a slash after a call to a propery named the same as some keywords would be tokenized as a regular expression.
|
|---|
| 122 |
|
|---|
| 123 | ### New features
|
|---|
| 124 |
|
|---|
| 125 | Upgrade to Unicode 15.1.
|
|---|
| 126 |
|
|---|
| 127 | Use a set of new, much more precise, TypeScript types.
|
|---|
| 128 |
|
|---|
| 129 | ## 8.10.0 (2023-07-05)
|
|---|
| 130 |
|
|---|
| 131 | ### New features
|
|---|
| 132 |
|
|---|
| 133 | Add a `checkPrivateFields` option that disables strict checking of private property use.
|
|---|
| 134 |
|
|---|
| 135 | ## 8.9.0 (2023-06-16)
|
|---|
| 136 |
|
|---|
| 137 | ### Bug fixes
|
|---|
| 138 |
|
|---|
| 139 | Forbid dynamic import after `new`, even when part of a member expression.
|
|---|
| 140 |
|
|---|
| 141 | ### New features
|
|---|
| 142 |
|
|---|
| 143 | Add Unicode properties for ES2023.
|
|---|
| 144 |
|
|---|
| 145 | Add support for the `v` flag to regular expressions.
|
|---|
| 146 |
|
|---|
| 147 | ## 8.8.2 (2023-01-23)
|
|---|
| 148 |
|
|---|
| 149 | ### Bug fixes
|
|---|
| 150 |
|
|---|
| 151 | Fix a bug that caused `allowHashBang` to be set to false when not provided, even with `ecmaVersion >= 14`.
|
|---|
| 152 |
|
|---|
| 153 | Fix an exception when passing no option object to `parse` or `new Parser`.
|
|---|
| 154 |
|
|---|
| 155 | Fix incorrect parse error on `if (0) let\n[astral identifier char]`.
|
|---|
| 156 |
|
|---|
| 157 | ## 8.8.1 (2022-10-24)
|
|---|
| 158 |
|
|---|
| 159 | ### Bug fixes
|
|---|
| 160 |
|
|---|
| 161 | Make type for `Comment` compatible with estree types.
|
|---|
| 162 |
|
|---|
| 163 | ## 8.8.0 (2022-07-21)
|
|---|
| 164 |
|
|---|
| 165 | ### Bug fixes
|
|---|
| 166 |
|
|---|
| 167 | Allow parentheses around spread args in destructuring object assignment.
|
|---|
| 168 |
|
|---|
| 169 | Fix an issue where the tree contained `directive` properties in when parsing with a language version that doesn't support them.
|
|---|
| 170 |
|
|---|
| 171 | ### New features
|
|---|
| 172 |
|
|---|
| 173 | Support hashbang comments by default in ECMAScript 2023 and later.
|
|---|
| 174 |
|
|---|
| 175 | ## 8.7.1 (2021-04-26)
|
|---|
| 176 |
|
|---|
| 177 | ### Bug fixes
|
|---|
| 178 |
|
|---|
| 179 | Stop handling `"use strict"` directives in ECMAScript versions before 5.
|
|---|
| 180 |
|
|---|
| 181 | Fix an issue where duplicate quoted export names in `export *` syntax were incorrectly checked.
|
|---|
| 182 |
|
|---|
| 183 | Add missing type for `tokTypes`.
|
|---|
| 184 |
|
|---|
| 185 | ## 8.7.0 (2021-12-27)
|
|---|
| 186 |
|
|---|
| 187 | ### New features
|
|---|
| 188 |
|
|---|
| 189 | Support quoted export names.
|
|---|
| 190 |
|
|---|
| 191 | Upgrade to Unicode 14.
|
|---|
| 192 |
|
|---|
| 193 | Add support for Unicode 13 properties in regular expressions.
|
|---|
| 194 |
|
|---|
| 195 | ### Bug fixes
|
|---|
| 196 |
|
|---|
| 197 | Use a loop to find line breaks, because the existing regexp search would overrun the end of the searched range and waste a lot of time in minified code.
|
|---|
| 198 |
|
|---|
| 199 | ## 8.6.0 (2021-11-18)
|
|---|
| 200 |
|
|---|
| 201 | ### Bug fixes
|
|---|
| 202 |
|
|---|
| 203 | Fix a bug where an object literal with multiple `__proto__` properties would incorrectly be accepted if a later property value held an assigment.
|
|---|
| 204 |
|
|---|
| 205 | ### New features
|
|---|
| 206 |
|
|---|
| 207 | Support class private fields with the `in` operator.
|
|---|
| 208 |
|
|---|
| 209 | ## 8.5.0 (2021-09-06)
|
|---|
| 210 |
|
|---|
| 211 | ### Bug fixes
|
|---|
| 212 |
|
|---|
| 213 | Improve context-dependent tokenization in a number of corner cases.
|
|---|
| 214 |
|
|---|
| 215 | Fix location tracking after a 0x2028 or 0x2029 character in a string literal (which before did not increase the line number).
|
|---|
| 216 |
|
|---|
| 217 | Fix an issue where arrow function bodies in for loop context would inappropriately consume `in` operators.
|
|---|
| 218 |
|
|---|
| 219 | Fix wrong end locations stored on SequenceExpression nodes.
|
|---|
| 220 |
|
|---|
| 221 | Implement restriction that `for`/`of` loop LHS can't start with `let`.
|
|---|
| 222 |
|
|---|
| 223 | ### New features
|
|---|
| 224 |
|
|---|
| 225 | Add support for ES2022 class static blocks.
|
|---|
| 226 |
|
|---|
| 227 | Allow multiple input files to be passed to the CLI tool.
|
|---|
| 228 |
|
|---|
| 229 | ## 8.4.1 (2021-06-24)
|
|---|
| 230 |
|
|---|
| 231 | ### Bug fixes
|
|---|
| 232 |
|
|---|
| 233 | Fix a bug where `allowAwaitOutsideFunction` would allow `await` in class field initializers, and setting `ecmaVersion` to 13 or higher would allow top-level await in non-module sources.
|
|---|
| 234 |
|
|---|
| 235 | ## 8.4.0 (2021-06-11)
|
|---|
| 236 |
|
|---|
| 237 | ### New features
|
|---|
| 238 |
|
|---|
| 239 | A new option, `allowSuperOutsideMethod`, can be used to suppress the error when `super` is used in the wrong context.
|
|---|
| 240 |
|
|---|
| 241 | ## 8.3.0 (2021-05-31)
|
|---|
| 242 |
|
|---|
| 243 | ### New features
|
|---|
| 244 |
|
|---|
| 245 | Default `allowAwaitOutsideFunction` to true for ECMAScript 2022 an higher.
|
|---|
| 246 |
|
|---|
| 247 | Add support for the `d` ([indices](https://github.com/tc39/proposal-regexp-match-indices)) regexp flag.
|
|---|
| 248 |
|
|---|
| 249 | ## 8.2.4 (2021-05-04)
|
|---|
| 250 |
|
|---|
| 251 | ### Bug fixes
|
|---|
| 252 |
|
|---|
| 253 | Fix spec conformity in corner case 'for await (async of ...)'.
|
|---|
| 254 |
|
|---|
| 255 | ## 8.2.3 (2021-05-04)
|
|---|
| 256 |
|
|---|
| 257 | ### Bug fixes
|
|---|
| 258 |
|
|---|
| 259 | Fix an issue where the library couldn't parse 'for (async of ...)'.
|
|---|
| 260 |
|
|---|
| 261 | Fix a bug in UTF-16 decoding that would read characters incorrectly in some circumstances.
|
|---|
| 262 |
|
|---|
| 263 | ## 8.2.2 (2021-04-29)
|
|---|
| 264 |
|
|---|
| 265 | ### Bug fixes
|
|---|
| 266 |
|
|---|
| 267 | Fix a bug where a class field initialized to an async arrow function wouldn't allow await inside it. Same issue existed for generator arrow functions with yield.
|
|---|
| 268 |
|
|---|
| 269 | ## 8.2.1 (2021-04-24)
|
|---|
| 270 |
|
|---|
| 271 | ### Bug fixes
|
|---|
| 272 |
|
|---|
| 273 | Fix a regression introduced in 8.2.0 where static or async class methods with keyword names fail to parse.
|
|---|
| 274 |
|
|---|
| 275 | ## 8.2.0 (2021-04-24)
|
|---|
| 276 |
|
|---|
| 277 | ### New features
|
|---|
| 278 |
|
|---|
| 279 | Add support for ES2022 class fields and private methods.
|
|---|
| 280 |
|
|---|
| 281 | ## 8.1.1 (2021-04-12)
|
|---|
| 282 |
|
|---|
| 283 | ### Various
|
|---|
| 284 |
|
|---|
| 285 | Stop shipping source maps in the NPM package.
|
|---|
| 286 |
|
|---|
| 287 | ## 8.1.0 (2021-03-09)
|
|---|
| 288 |
|
|---|
| 289 | ### Bug fixes
|
|---|
| 290 |
|
|---|
| 291 | Fix a spurious error in nested destructuring arrays.
|
|---|
| 292 |
|
|---|
| 293 | ### New features
|
|---|
| 294 |
|
|---|
| 295 | Expose `allowAwaitOutsideFunction` in CLI interface.
|
|---|
| 296 |
|
|---|
| 297 | Make `allowImportExportAnywhere` also apply to `import.meta`.
|
|---|
| 298 |
|
|---|
| 299 | ## 8.0.5 (2021-01-25)
|
|---|
| 300 |
|
|---|
| 301 | ### Bug fixes
|
|---|
| 302 |
|
|---|
| 303 | Adjust package.json to work with Node 12.16.0 and 13.0-13.6.
|
|---|
| 304 |
|
|---|
| 305 | ## 8.0.4 (2020-10-05)
|
|---|
| 306 |
|
|---|
| 307 | ### Bug fixes
|
|---|
| 308 |
|
|---|
| 309 | Make `await x ** y` an error, following the spec.
|
|---|
| 310 |
|
|---|
| 311 | Fix potentially exponential regular expression.
|
|---|
| 312 |
|
|---|
| 313 | ## 8.0.3 (2020-10-02)
|
|---|
| 314 |
|
|---|
| 315 | ### Bug fixes
|
|---|
| 316 |
|
|---|
| 317 | Fix a wasteful loop during `Parser` creation when setting `ecmaVersion` to `"latest"`.
|
|---|
| 318 |
|
|---|
| 319 | ## 8.0.2 (2020-09-30)
|
|---|
| 320 |
|
|---|
| 321 | ### Bug fixes
|
|---|
| 322 |
|
|---|
| 323 | Make the TypeScript types reflect the current allowed values for `ecmaVersion`.
|
|---|
| 324 |
|
|---|
| 325 | Fix another regexp/division tokenizer issue.
|
|---|
| 326 |
|
|---|
| 327 | ## 8.0.1 (2020-08-12)
|
|---|
| 328 |
|
|---|
| 329 | ### Bug fixes
|
|---|
| 330 |
|
|---|
| 331 | Provide the correct value in the `version` export.
|
|---|
| 332 |
|
|---|
| 333 | ## 8.0.0 (2020-08-12)
|
|---|
| 334 |
|
|---|
| 335 | ### Bug fixes
|
|---|
| 336 |
|
|---|
| 337 | Disallow expressions like `(a = b) = c`.
|
|---|
| 338 |
|
|---|
| 339 | Make non-octal escape sequences a syntax error in strict mode.
|
|---|
| 340 |
|
|---|
| 341 | ### New features
|
|---|
| 342 |
|
|---|
| 343 | The package can now be loaded directly as an ECMAScript module in node 13+.
|
|---|
| 344 |
|
|---|
| 345 | Update to the set of Unicode properties from ES2021.
|
|---|
| 346 |
|
|---|
| 347 | ### Breaking changes
|
|---|
| 348 |
|
|---|
| 349 | The `ecmaVersion` option is now required. For the moment, omitting it will still work with a warning, but that will change in a future release.
|
|---|
| 350 |
|
|---|
| 351 | Some changes to method signatures that may be used by plugins.
|
|---|
| 352 |
|
|---|
| 353 | ## 7.4.0 (2020-08-03)
|
|---|
| 354 |
|
|---|
| 355 | ### New features
|
|---|
| 356 |
|
|---|
| 357 | Add support for logical assignment operators.
|
|---|
| 358 |
|
|---|
| 359 | Add support for numeric separators.
|
|---|
| 360 |
|
|---|
| 361 | ## 7.3.1 (2020-06-11)
|
|---|
| 362 |
|
|---|
| 363 | ### Bug fixes
|
|---|
| 364 |
|
|---|
| 365 | Make the string in the `version` export match the actual library version.
|
|---|
| 366 |
|
|---|
| 367 | ## 7.3.0 (2020-06-11)
|
|---|
| 368 |
|
|---|
| 369 | ### Bug fixes
|
|---|
| 370 |
|
|---|
| 371 | Fix a bug that caused parsing of object patterns with a property named `set` that had a default value to fail.
|
|---|
| 372 |
|
|---|
| 373 | ### New features
|
|---|
| 374 |
|
|---|
| 375 | Add support for optional chaining (`?.`).
|
|---|
| 376 |
|
|---|
| 377 | ## 7.2.0 (2020-05-09)
|
|---|
| 378 |
|
|---|
| 379 | ### Bug fixes
|
|---|
| 380 |
|
|---|
| 381 | Fix precedence issue in parsing of async arrow functions.
|
|---|
| 382 |
|
|---|
| 383 | ### New features
|
|---|
| 384 |
|
|---|
| 385 | Add support for nullish coalescing.
|
|---|
| 386 |
|
|---|
| 387 | Add support for `import.meta`.
|
|---|
| 388 |
|
|---|
| 389 | Support `export * as ...` syntax.
|
|---|
| 390 |
|
|---|
| 391 | Upgrade to Unicode 13.
|
|---|
| 392 |
|
|---|
| 393 | ## 6.4.1 (2020-03-09)
|
|---|
| 394 |
|
|---|
| 395 | ### Bug fixes
|
|---|
| 396 |
|
|---|
| 397 | More carefully check for valid UTF16 surrogate pairs in regexp validator.
|
|---|
| 398 |
|
|---|
| 399 | ## 7.1.1 (2020-03-01)
|
|---|
| 400 |
|
|---|
| 401 | ### Bug fixes
|
|---|
| 402 |
|
|---|
| 403 | Treat `\8` and `\9` as invalid escapes in template strings.
|
|---|
| 404 |
|
|---|
| 405 | Allow unicode escapes in property names that are keywords.
|
|---|
| 406 |
|
|---|
| 407 | Don't error on an exponential operator expression as argument to `await`.
|
|---|
| 408 |
|
|---|
| 409 | More carefully check for valid UTF16 surrogate pairs in regexp validator.
|
|---|
| 410 |
|
|---|
| 411 | ## 7.1.0 (2019-09-24)
|
|---|
| 412 |
|
|---|
| 413 | ### Bug fixes
|
|---|
| 414 |
|
|---|
| 415 | Disallow trailing object literal commas when ecmaVersion is less than 5.
|
|---|
| 416 |
|
|---|
| 417 | ### New features
|
|---|
| 418 |
|
|---|
| 419 | Add a static `acorn` property to the `Parser` class that contains the entire module interface, to allow plugins to access the instance of the library that they are acting on.
|
|---|
| 420 |
|
|---|
| 421 | ## 7.0.0 (2019-08-13)
|
|---|
| 422 |
|
|---|
| 423 | ### Breaking changes
|
|---|
| 424 |
|
|---|
| 425 | Changes the node format for dynamic imports to use the `ImportExpression` node type, as defined in [ESTree](https://github.com/estree/estree/blob/master/es2020.md#importexpression).
|
|---|
| 426 |
|
|---|
| 427 | Makes 10 (ES2019) the default value for the `ecmaVersion` option.
|
|---|
| 428 |
|
|---|
| 429 | ## 6.3.0 (2019-08-12)
|
|---|
| 430 |
|
|---|
| 431 | ### New features
|
|---|
| 432 |
|
|---|
| 433 | `sourceType: "module"` can now be used even when `ecmaVersion` is less than 6, to parse module-style code that otherwise conforms to an older standard.
|
|---|
| 434 |
|
|---|
| 435 | ## 6.2.1 (2019-07-21)
|
|---|
| 436 |
|
|---|
| 437 | ### Bug fixes
|
|---|
| 438 |
|
|---|
| 439 | Fix bug causing Acorn to treat some characters as identifier characters that shouldn't be treated as such.
|
|---|
| 440 |
|
|---|
| 441 | Fix issue where setting the `allowReserved` option to `"never"` allowed reserved words in some circumstances.
|
|---|
| 442 |
|
|---|
| 443 | ## 6.2.0 (2019-07-04)
|
|---|
| 444 |
|
|---|
| 445 | ### Bug fixes
|
|---|
| 446 |
|
|---|
| 447 | Improve valid assignment checking in `for`/`in` and `for`/`of` loops.
|
|---|
| 448 |
|
|---|
| 449 | Disallow binding `let` in patterns.
|
|---|
| 450 |
|
|---|
| 451 | ### New features
|
|---|
| 452 |
|
|---|
| 453 | Support bigint syntax with `ecmaVersion` >= 11.
|
|---|
| 454 |
|
|---|
| 455 | Support dynamic `import` syntax with `ecmaVersion` >= 11.
|
|---|
| 456 |
|
|---|
| 457 | Upgrade to Unicode version 12.
|
|---|
| 458 |
|
|---|
| 459 | ## 6.1.1 (2019-02-27)
|
|---|
| 460 |
|
|---|
| 461 | ### Bug fixes
|
|---|
| 462 |
|
|---|
| 463 | Fix bug that caused parsing default exports of with names to fail.
|
|---|
| 464 |
|
|---|
| 465 | ## 6.1.0 (2019-02-08)
|
|---|
| 466 |
|
|---|
| 467 | ### Bug fixes
|
|---|
| 468 |
|
|---|
| 469 | Fix scope checking when redefining a `var` as a lexical binding.
|
|---|
| 470 |
|
|---|
| 471 | ### New features
|
|---|
| 472 |
|
|---|
| 473 | Split up `parseSubscripts` to use an internal `parseSubscript` method to make it easier to extend with plugins.
|
|---|
| 474 |
|
|---|
| 475 | ## 6.0.7 (2019-02-04)
|
|---|
| 476 |
|
|---|
| 477 | ### Bug fixes
|
|---|
| 478 |
|
|---|
| 479 | Check that exported bindings are defined.
|
|---|
| 480 |
|
|---|
| 481 | Don't treat `\u180e` as a whitespace character.
|
|---|
| 482 |
|
|---|
| 483 | Check for duplicate parameter names in methods.
|
|---|
| 484 |
|
|---|
| 485 | Don't allow shorthand properties when they are generators or async methods.
|
|---|
| 486 |
|
|---|
| 487 | Forbid binding `await` in async arrow function's parameter list.
|
|---|
| 488 |
|
|---|
| 489 | ## 6.0.6 (2019-01-30)
|
|---|
| 490 |
|
|---|
| 491 | ### Bug fixes
|
|---|
| 492 |
|
|---|
| 493 | The content of class declarations and expressions is now always parsed in strict mode.
|
|---|
| 494 |
|
|---|
| 495 | Don't allow `let` or `const` to bind the variable name `let`.
|
|---|
| 496 |
|
|---|
| 497 | Treat class declarations as lexical.
|
|---|
| 498 |
|
|---|
| 499 | Don't allow a generator function declaration as the sole body of an `if` or `else`.
|
|---|
| 500 |
|
|---|
| 501 | Ignore `"use strict"` when after an empty statement.
|
|---|
| 502 |
|
|---|
| 503 | Allow string line continuations with special line terminator characters.
|
|---|
| 504 |
|
|---|
| 505 | Treat `for` bodies as part of the `for` scope when checking for conflicting bindings.
|
|---|
| 506 |
|
|---|
| 507 | Fix bug with parsing `yield` in a `for` loop initializer.
|
|---|
| 508 |
|
|---|
| 509 | Implement special cases around scope checking for functions.
|
|---|
| 510 |
|
|---|
| 511 | ## 6.0.5 (2019-01-02)
|
|---|
| 512 |
|
|---|
| 513 | ### Bug fixes
|
|---|
| 514 |
|
|---|
| 515 | Fix TypeScript type for `Parser.extend` and add `allowAwaitOutsideFunction` to options type.
|
|---|
| 516 |
|
|---|
| 517 | Don't treat `let` as a keyword when the next token is `{` on the next line.
|
|---|
| 518 |
|
|---|
| 519 | Fix bug that broke checking for parentheses around an object pattern in a destructuring assignment when `preserveParens` was on.
|
|---|
| 520 |
|
|---|
| 521 | ## 6.0.4 (2018-11-05)
|
|---|
| 522 |
|
|---|
| 523 | ### Bug fixes
|
|---|
| 524 |
|
|---|
| 525 | Further improvements to tokenizing regular expressions in corner cases.
|
|---|
| 526 |
|
|---|
| 527 | ## 6.0.3 (2018-11-04)
|
|---|
| 528 |
|
|---|
| 529 | ### Bug fixes
|
|---|
| 530 |
|
|---|
| 531 | Fix bug in tokenizing an expression-less return followed by a function followed by a regular expression.
|
|---|
| 532 |
|
|---|
| 533 | Remove stray symlink in the package tarball.
|
|---|
| 534 |
|
|---|
| 535 | ## 6.0.2 (2018-09-26)
|
|---|
| 536 |
|
|---|
| 537 | ### Bug fixes
|
|---|
| 538 |
|
|---|
| 539 | Fix bug where default expressions could fail to parse inside an object destructuring assignment expression.
|
|---|
| 540 |
|
|---|
| 541 | ## 6.0.1 (2018-09-14)
|
|---|
| 542 |
|
|---|
| 543 | ### Bug fixes
|
|---|
| 544 |
|
|---|
| 545 | Fix wrong value in `version` export.
|
|---|
| 546 |
|
|---|
| 547 | ## 6.0.0 (2018-09-14)
|
|---|
| 548 |
|
|---|
| 549 | ### Bug fixes
|
|---|
| 550 |
|
|---|
| 551 | Better handle variable-redefinition checks for catch bindings and functions directly under if statements.
|
|---|
| 552 |
|
|---|
| 553 | Forbid `new.target` in top-level arrow functions.
|
|---|
| 554 |
|
|---|
| 555 | Fix issue with parsing a regexp after `yield` in some contexts.
|
|---|
| 556 |
|
|---|
| 557 | ### New features
|
|---|
| 558 |
|
|---|
| 559 | The package now comes with TypeScript definitions.
|
|---|
| 560 |
|
|---|
| 561 | ### Breaking changes
|
|---|
| 562 |
|
|---|
| 563 | The default value of the `ecmaVersion` option is now 9 (2018).
|
|---|
| 564 |
|
|---|
| 565 | Plugins work differently, and will have to be rewritten to work with this version.
|
|---|
| 566 |
|
|---|
| 567 | The loose parser and walker have been moved into separate packages (`acorn-loose` and `acorn-walk`).
|
|---|
| 568 |
|
|---|
| 569 | ## 5.7.3 (2018-09-10)
|
|---|
| 570 |
|
|---|
| 571 | ### Bug fixes
|
|---|
| 572 |
|
|---|
| 573 | Fix failure to tokenize regexps after expressions like `x.of`.
|
|---|
| 574 |
|
|---|
| 575 | Better error message for unterminated template literals.
|
|---|
| 576 |
|
|---|
| 577 | ## 5.7.2 (2018-08-24)
|
|---|
| 578 |
|
|---|
| 579 | ### Bug fixes
|
|---|
| 580 |
|
|---|
| 581 | Properly handle `allowAwaitOutsideFunction` in for statements.
|
|---|
| 582 |
|
|---|
| 583 | Treat function declarations at the top level of modules like let bindings.
|
|---|
| 584 |
|
|---|
| 585 | Don't allow async function declarations as the only statement under a label.
|
|---|
| 586 |
|
|---|
| 587 | ## 5.7.0 (2018-06-15)
|
|---|
| 588 |
|
|---|
| 589 | ### New features
|
|---|
| 590 |
|
|---|
| 591 | Upgraded to Unicode 11.
|
|---|
| 592 |
|
|---|
| 593 | ## 5.6.0 (2018-05-31)
|
|---|
| 594 |
|
|---|
| 595 | ### New features
|
|---|
| 596 |
|
|---|
| 597 | Allow U+2028 and U+2029 in string when ECMAVersion >= 10.
|
|---|
| 598 |
|
|---|
| 599 | Allow binding-less catch statements when ECMAVersion >= 10.
|
|---|
| 600 |
|
|---|
| 601 | Add `allowAwaitOutsideFunction` option for parsing top-level `await`.
|
|---|
| 602 |
|
|---|
| 603 | ## 5.5.3 (2018-03-08)
|
|---|
| 604 |
|
|---|
| 605 | ### Bug fixes
|
|---|
| 606 |
|
|---|
| 607 | A _second_ republish of the code in 5.5.1, this time with yarn, to hopefully get valid timestamps.
|
|---|
| 608 |
|
|---|
| 609 | ## 5.5.2 (2018-03-08)
|
|---|
| 610 |
|
|---|
| 611 | ### Bug fixes
|
|---|
| 612 |
|
|---|
| 613 | A republish of the code in 5.5.1 in an attempt to solve an issue with the file timestamps in the npm package being 0.
|
|---|
| 614 |
|
|---|
| 615 | ## 5.5.1 (2018-03-06)
|
|---|
| 616 |
|
|---|
| 617 | ### Bug fixes
|
|---|
| 618 |
|
|---|
| 619 | Fix misleading error message for octal escapes in template strings.
|
|---|
| 620 |
|
|---|
| 621 | ## 5.5.0 (2018-02-27)
|
|---|
| 622 |
|
|---|
| 623 | ### New features
|
|---|
| 624 |
|
|---|
| 625 | The identifier character categorization is now based on Unicode version 10.
|
|---|
| 626 |
|
|---|
| 627 | Acorn will now validate the content of regular expressions, including new ES9 features.
|
|---|
| 628 |
|
|---|
| 629 | ## 5.4.0 (2018-02-01)
|
|---|
| 630 |
|
|---|
| 631 | ### Bug fixes
|
|---|
| 632 |
|
|---|
| 633 | Disallow duplicate or escaped flags on regular expressions.
|
|---|
| 634 |
|
|---|
| 635 | Disallow octal escapes in strings in strict mode.
|
|---|
| 636 |
|
|---|
| 637 | ### New features
|
|---|
| 638 |
|
|---|
| 639 | Add support for async iteration.
|
|---|
| 640 |
|
|---|
| 641 | Add support for object spread and rest.
|
|---|
| 642 |
|
|---|
| 643 | ## 5.3.0 (2017-12-28)
|
|---|
| 644 |
|
|---|
| 645 | ### Bug fixes
|
|---|
| 646 |
|
|---|
| 647 | Fix parsing of floating point literals with leading zeroes in loose mode.
|
|---|
| 648 |
|
|---|
| 649 | Allow duplicate property names in object patterns.
|
|---|
| 650 |
|
|---|
| 651 | Don't allow static class methods named `prototype`.
|
|---|
| 652 |
|
|---|
| 653 | Disallow async functions directly under `if` or `else`.
|
|---|
| 654 |
|
|---|
| 655 | Parse right-hand-side of `for`/`of` as an assignment expression.
|
|---|
| 656 |
|
|---|
| 657 | Stricter parsing of `for`/`in`.
|
|---|
| 658 |
|
|---|
| 659 | Don't allow unicode escapes in contextual keywords.
|
|---|
| 660 |
|
|---|
| 661 | ### New features
|
|---|
| 662 |
|
|---|
| 663 | Parsing class members was factored into smaller methods to allow plugins to hook into it.
|
|---|
| 664 |
|
|---|
| 665 | ## 5.2.1 (2017-10-30)
|
|---|
| 666 |
|
|---|
| 667 | ### Bug fixes
|
|---|
| 668 |
|
|---|
| 669 | Fix a token context corruption bug.
|
|---|
| 670 |
|
|---|
| 671 | ## 5.2.0 (2017-10-30)
|
|---|
| 672 |
|
|---|
| 673 | ### Bug fixes
|
|---|
| 674 |
|
|---|
| 675 | Fix token context tracking for `class` and `function` in property-name position.
|
|---|
| 676 |
|
|---|
| 677 | Make sure `%*` isn't parsed as a valid operator.
|
|---|
| 678 |
|
|---|
| 679 | Allow shorthand properties `get` and `set` to be followed by default values.
|
|---|
| 680 |
|
|---|
| 681 | Disallow `super` when not in callee or object position.
|
|---|
| 682 |
|
|---|
| 683 | ### New features
|
|---|
| 684 |
|
|---|
| 685 | Support [`directive` property](https://github.com/estree/estree/compare/b3de58c9997504d6fba04b72f76e6dd1619ee4eb...1da8e603237144f44710360f8feb7a9977e905e0) on directive expression statements.
|
|---|
| 686 |
|
|---|
| 687 | ## 5.1.2 (2017-09-04)
|
|---|
| 688 |
|
|---|
| 689 | ### Bug fixes
|
|---|
| 690 |
|
|---|
| 691 | Disable parsing of legacy HTML-style comments in modules.
|
|---|
| 692 |
|
|---|
| 693 | Fix parsing of async methods whose names are keywords.
|
|---|
| 694 |
|
|---|
| 695 | ## 5.1.1 (2017-07-06)
|
|---|
| 696 |
|
|---|
| 697 | ### Bug fixes
|
|---|
| 698 |
|
|---|
| 699 | Fix problem with disambiguating regexp and division after a class.
|
|---|
| 700 |
|
|---|
| 701 | ## 5.1.0 (2017-07-05)
|
|---|
| 702 |
|
|---|
| 703 | ### Bug fixes
|
|---|
| 704 |
|
|---|
| 705 | Fix tokenizing of regexps in an object-desctructuring `for`/`of` loop and after `yield`.
|
|---|
| 706 |
|
|---|
| 707 | Parse zero-prefixed numbers with non-octal digits as decimal.
|
|---|
| 708 |
|
|---|
| 709 | Allow object/array patterns in rest parameters.
|
|---|
| 710 |
|
|---|
| 711 | Don't error when `yield` is used as a property name.
|
|---|
| 712 |
|
|---|
| 713 | Allow `async` as a shorthand object property.
|
|---|
| 714 |
|
|---|
| 715 | ### New features
|
|---|
| 716 |
|
|---|
| 717 | Implement the [template literal revision proposal](https://github.com/tc39/proposal-template-literal-revision) for ES9.
|
|---|
| 718 |
|
|---|
| 719 | ## 5.0.3 (2017-04-01)
|
|---|
| 720 |
|
|---|
| 721 | ### Bug fixes
|
|---|
| 722 |
|
|---|
| 723 | Fix spurious duplicate variable definition errors for named functions.
|
|---|
| 724 |
|
|---|
| 725 | ## 5.0.2 (2017-03-30)
|
|---|
| 726 |
|
|---|
| 727 | ### Bug fixes
|
|---|
| 728 |
|
|---|
| 729 | A binary operator after a parenthesized arrow expression is no longer incorrectly treated as an error.
|
|---|
| 730 |
|
|---|
| 731 | ## 5.0.0 (2017-03-28)
|
|---|
| 732 |
|
|---|
| 733 | ### Bug fixes
|
|---|
| 734 |
|
|---|
| 735 | Raise an error for duplicated lexical bindings.
|
|---|
| 736 |
|
|---|
| 737 | Fix spurious error when an assignement expression occurred after a spread expression.
|
|---|
| 738 |
|
|---|
| 739 | Accept regular expressions after `of` (in `for`/`of`), `yield` (in a generator), and braced arrow functions.
|
|---|
| 740 |
|
|---|
| 741 | Allow labels in front or `var` declarations, even in strict mode.
|
|---|
| 742 |
|
|---|
| 743 | ### Breaking changes
|
|---|
| 744 |
|
|---|
| 745 | Parse declarations following `export default` as declaration nodes, not expressions. This means that class and function declarations nodes can now have `null` as their `id`.
|
|---|
| 746 |
|
|---|
| 747 | ## 4.0.11 (2017-02-07)
|
|---|
| 748 |
|
|---|
| 749 | ### Bug fixes
|
|---|
| 750 |
|
|---|
| 751 | Allow all forms of member expressions to be parenthesized as lvalue.
|
|---|
| 752 |
|
|---|
| 753 | ## 4.0.10 (2017-02-07)
|
|---|
| 754 |
|
|---|
| 755 | ### Bug fixes
|
|---|
| 756 |
|
|---|
| 757 | Don't expect semicolons after default-exported functions or classes, even when they are expressions.
|
|---|
| 758 |
|
|---|
| 759 | Check for use of `'use strict'` directives in non-simple parameter functions, even when already in strict mode.
|
|---|
| 760 |
|
|---|
| 761 | ## 4.0.9 (2017-02-06)
|
|---|
| 762 |
|
|---|
| 763 | ### Bug fixes
|
|---|
| 764 |
|
|---|
| 765 | Fix incorrect error raised for parenthesized simple assignment targets, so that `(x) = 1` parses again.
|
|---|
| 766 |
|
|---|
| 767 | ## 4.0.8 (2017-02-03)
|
|---|
| 768 |
|
|---|
| 769 | ### Bug fixes
|
|---|
| 770 |
|
|---|
| 771 | Solve spurious parenthesized pattern errors by temporarily erring on the side of accepting programs that our delayed errors don't handle correctly yet.
|
|---|
| 772 |
|
|---|
| 773 | ## 4.0.7 (2017-02-02)
|
|---|
| 774 |
|
|---|
| 775 | ### Bug fixes
|
|---|
| 776 |
|
|---|
| 777 | Accept invalidly rejected code like `(x).y = 2` again.
|
|---|
| 778 |
|
|---|
| 779 | Don't raise an error when a function _inside_ strict code has a non-simple parameter list.
|
|---|
| 780 |
|
|---|
| 781 | ## 4.0.6 (2017-02-02)
|
|---|
| 782 |
|
|---|
| 783 | ### Bug fixes
|
|---|
| 784 |
|
|---|
| 785 | Fix exponential behavior (manifesting itself as a complete hang for even relatively small source files) introduced by the new 'use strict' check.
|
|---|
| 786 |
|
|---|
| 787 | ## 4.0.5 (2017-02-02)
|
|---|
| 788 |
|
|---|
| 789 | ### Bug fixes
|
|---|
| 790 |
|
|---|
| 791 | Disallow parenthesized pattern expressions.
|
|---|
| 792 |
|
|---|
| 793 | Allow keywords as export names.
|
|---|
| 794 |
|
|---|
| 795 | Don't allow the `async` keyword to be parenthesized.
|
|---|
| 796 |
|
|---|
| 797 | Properly raise an error when a keyword contains a character escape.
|
|---|
| 798 |
|
|---|
| 799 | Allow `"use strict"` to appear after other string literal expressions.
|
|---|
| 800 |
|
|---|
| 801 | Disallow labeled declarations.
|
|---|
| 802 |
|
|---|
| 803 | ## 4.0.4 (2016-12-19)
|
|---|
| 804 |
|
|---|
| 805 | ### Bug fixes
|
|---|
| 806 |
|
|---|
| 807 | Fix crash when `export` was followed by a keyword that can't be
|
|---|
| 808 | exported.
|
|---|
| 809 |
|
|---|
| 810 | ## 4.0.3 (2016-08-16)
|
|---|
| 811 |
|
|---|
| 812 | ### Bug fixes
|
|---|
| 813 |
|
|---|
| 814 | Allow regular function declarations inside single-statement `if` branches in loose mode. Forbid them entirely in strict mode.
|
|---|
| 815 |
|
|---|
| 816 | Properly parse properties named `async` in ES2017 mode.
|
|---|
| 817 |
|
|---|
| 818 | Fix bug where reserved words were broken in ES2017 mode.
|
|---|
| 819 |
|
|---|
| 820 | ## 4.0.2 (2016-08-11)
|
|---|
| 821 |
|
|---|
| 822 | ### Bug fixes
|
|---|
| 823 |
|
|---|
| 824 | Don't ignore period or 'e' characters after octal numbers.
|
|---|
| 825 |
|
|---|
| 826 | Fix broken parsing for call expressions in default parameter values of arrow functions.
|
|---|
| 827 |
|
|---|
| 828 | ## 4.0.1 (2016-08-08)
|
|---|
| 829 |
|
|---|
| 830 | ### Bug fixes
|
|---|
| 831 |
|
|---|
| 832 | Fix false positives in duplicated export name errors.
|
|---|
| 833 |
|
|---|
| 834 | ## 4.0.0 (2016-08-07)
|
|---|
| 835 |
|
|---|
| 836 | ### Breaking changes
|
|---|
| 837 |
|
|---|
| 838 | The default `ecmaVersion` option value is now 7.
|
|---|
| 839 |
|
|---|
| 840 | A number of internal method signatures changed, so plugins might need to be updated.
|
|---|
| 841 |
|
|---|
| 842 | ### Bug fixes
|
|---|
| 843 |
|
|---|
| 844 | The parser now raises errors on duplicated export names.
|
|---|
| 845 |
|
|---|
| 846 | `arguments` and `eval` can now be used in shorthand properties.
|
|---|
| 847 |
|
|---|
| 848 | Duplicate parameter names in non-simple argument lists now always produce an error.
|
|---|
| 849 |
|
|---|
| 850 | ### New features
|
|---|
| 851 |
|
|---|
| 852 | The `ecmaVersion` option now also accepts year-style version numbers
|
|---|
| 853 | (2015, etc).
|
|---|
| 854 |
|
|---|
| 855 | Support for `async`/`await` syntax when `ecmaVersion` is >= 8.
|
|---|
| 856 |
|
|---|
| 857 | Support for trailing commas in call expressions when `ecmaVersion` is >= 8.
|
|---|
| 858 |
|
|---|
| 859 | ## 3.3.0 (2016-07-25)
|
|---|
| 860 |
|
|---|
| 861 | ### Bug fixes
|
|---|
| 862 |
|
|---|
| 863 | Fix bug in tokenizing of regexp operator after a function declaration.
|
|---|
| 864 |
|
|---|
| 865 | Fix parser crash when parsing an array pattern with a hole.
|
|---|
| 866 |
|
|---|
| 867 | ### New features
|
|---|
| 868 |
|
|---|
| 869 | Implement check against complex argument lists in functions that enable strict mode in ES7.
|
|---|
| 870 |
|
|---|
| 871 | ## 3.2.0 (2016-06-07)
|
|---|
| 872 |
|
|---|
| 873 | ### Bug fixes
|
|---|
| 874 |
|
|---|
| 875 | Improve handling of lack of unicode regexp support in host
|
|---|
| 876 | environment.
|
|---|
| 877 |
|
|---|
| 878 | Properly reject shorthand properties whose name is a keyword.
|
|---|
| 879 |
|
|---|
| 880 | ### New features
|
|---|
| 881 |
|
|---|
| 882 | Visitors created with `visit.make` now have their base as _prototype_, rather than copying properties into a fresh object.
|
|---|
| 883 |
|
|---|
| 884 | ## 3.1.0 (2016-04-18)
|
|---|
| 885 |
|
|---|
| 886 | ### Bug fixes
|
|---|
| 887 |
|
|---|
| 888 | Properly tokenize the division operator directly after a function expression.
|
|---|
| 889 |
|
|---|
| 890 | Allow trailing comma in destructuring arrays.
|
|---|
| 891 |
|
|---|
| 892 | ## 3.0.4 (2016-02-25)
|
|---|
| 893 |
|
|---|
| 894 | ### Fixes
|
|---|
| 895 |
|
|---|
| 896 | Allow update expressions as left-hand-side of the ES7 exponential operator.
|
|---|
| 897 |
|
|---|
| 898 | ## 3.0.2 (2016-02-10)
|
|---|
| 899 |
|
|---|
| 900 | ### Fixes
|
|---|
| 901 |
|
|---|
| 902 | Fix bug that accidentally made `undefined` a reserved word when parsing ES7.
|
|---|
| 903 |
|
|---|
| 904 | ## 3.0.0 (2016-02-10)
|
|---|
| 905 |
|
|---|
| 906 | ### Breaking changes
|
|---|
| 907 |
|
|---|
| 908 | The default value of the `ecmaVersion` option is now 6 (used to be 5).
|
|---|
| 909 |
|
|---|
| 910 | Support for comprehension syntax (which was dropped from the draft spec) has been removed.
|
|---|
| 911 |
|
|---|
| 912 | ### Fixes
|
|---|
| 913 |
|
|---|
| 914 | `let` and `yield` are now “contextual keywords”, meaning you can mostly use them as identifiers in ES5 non-strict code.
|
|---|
| 915 |
|
|---|
| 916 | A parenthesized class or function expression after `export default` is now parsed correctly.
|
|---|
| 917 |
|
|---|
| 918 | ### New features
|
|---|
| 919 |
|
|---|
| 920 | When `ecmaVersion` is set to 7, Acorn will parse the exponentiation operator (`**`).
|
|---|
| 921 |
|
|---|
| 922 | The identifier character ranges are now based on Unicode 8.0.0.
|
|---|
| 923 |
|
|---|
| 924 | Plugins can now override the `raiseRecoverable` method to override the way non-critical errors are handled.
|
|---|
| 925 |
|
|---|
| 926 | ## 2.7.0 (2016-01-04)
|
|---|
| 927 |
|
|---|
| 928 | ### Fixes
|
|---|
| 929 |
|
|---|
| 930 | Stop allowing rest parameters in setters.
|
|---|
| 931 |
|
|---|
| 932 | Disallow `y` rexexp flag in ES5.
|
|---|
| 933 |
|
|---|
| 934 | Disallow `\00` and `\000` escapes in strict mode.
|
|---|
| 935 |
|
|---|
| 936 | Raise an error when an import name is a reserved word.
|
|---|
| 937 |
|
|---|
| 938 | ## 2.6.2 (2015-11-10)
|
|---|
| 939 |
|
|---|
| 940 | ### Fixes
|
|---|
| 941 |
|
|---|
| 942 | Don't crash when no options object is passed.
|
|---|
| 943 |
|
|---|
| 944 | ## 2.6.0 (2015-11-09)
|
|---|
| 945 |
|
|---|
| 946 | ### Fixes
|
|---|
| 947 |
|
|---|
| 948 | Add `await` as a reserved word in module sources.
|
|---|
| 949 |
|
|---|
| 950 | Disallow `yield` in a parameter default value for a generator.
|
|---|
| 951 |
|
|---|
| 952 | Forbid using a comma after a rest pattern in an array destructuring.
|
|---|
| 953 |
|
|---|
| 954 | ### New features
|
|---|
| 955 |
|
|---|
| 956 | Support parsing stdin in command-line tool.
|
|---|
| 957 |
|
|---|
| 958 | ## 2.5.0 (2015-10-27)
|
|---|
| 959 |
|
|---|
| 960 | ### Fixes
|
|---|
| 961 |
|
|---|
| 962 | Fix tokenizer support in the command-line tool.
|
|---|
| 963 |
|
|---|
| 964 | Stop allowing `new.target` outside of functions.
|
|---|
| 965 |
|
|---|
| 966 | Remove legacy `guard` and `guardedHandler` properties from try nodes.
|
|---|
| 967 |
|
|---|
| 968 | Stop allowing multiple `__proto__` properties on an object literal in strict mode.
|
|---|
| 969 |
|
|---|
| 970 | Don't allow rest parameters to be non-identifier patterns.
|
|---|
| 971 |
|
|---|
| 972 | Check for duplicate paramter names in arrow functions.
|
|---|