租房小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

928 lines
22 KiB

3 months ago
  1. ## 8.14.0 (2024-10-27)
  2. ### New features
  3. Support ES2025 import attributes.
  4. Support ES2025 RegExp modifiers.
  5. ### Bug fixes
  6. Support some missing Unicode properties.
  7. ## 8.13.0 (2024-10-16)
  8. ### New features
  9. Upgrade to Unicode 16.0.
  10. ## 8.12.1 (2024-07-03)
  11. ### Bug fixes
  12. Fix a regression that caused Acorn to no longer run on Node versions <8.10.
  13. ## 8.12.0 (2024-06-14)
  14. ### New features
  15. Support ES2025 duplicate capture group names in regular expressions.
  16. ### Bug fixes
  17. Include `VariableDeclarator` in the `AnyNode` type so that walker objects can refer to it without getting a type error.
  18. Properly raise a parse error for invalid `for`/`of` statements using `async` as binding name.
  19. Properly recognize \"use strict\" when preceded by a string with an escaped newline.
  20. Mark the `Parser` constructor as protected, not private, so plugins can extend it without type errors.
  21. Fix a bug where some invalid `delete` expressions were let through when the operand was parenthesized and `preserveParens` was enabled.
  22. Properly normalize line endings in raw strings of invalid template tokens.
  23. Properly track line numbers for escaped newlines in strings.
  24. Fix a bug that broke line number accounting after a template literal with invalid escape sequences.
  25. ## 8.11.3 (2023-12-29)
  26. ### Bug fixes
  27. Add `Function` and `Class` to the `AggregateType` type, so that they can be used in walkers without raising a type error.
  28. Make sure `onToken` get an `import` keyword token when parsing `import.meta`.
  29. Fix a bug where `.loc.start` could be undefined for `new.target` `meta` nodes.
  30. ## 8.11.2 (2023-10-27)
  31. ### Bug fixes
  32. Fix a bug that caused regular expressions after colon tokens to not be properly tokenized in some circumstances.
  33. ## 8.11.1 (2023-10-26)
  34. ### Bug fixes
  35. Fix a regression where `onToken` would receive 'name' tokens for 'new' keyword tokens.
  36. ## 8.11.0 (2023-10-26)
  37. ### Bug fixes
  38. 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.
  39. 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.
  40. ### New features
  41. Upgrade to Unicode 15.1.
  42. Use a set of new, much more precise, TypeScript types.
  43. ## 8.10.0 (2023-07-05)
  44. ### New features
  45. Add a `checkPrivateFields` option that disables strict checking of private property use.
  46. ## 8.9.0 (2023-06-16)
  47. ### Bug fixes
  48. Forbid dynamic import after `new`, even when part of a member expression.
  49. ### New features
  50. Add Unicode properties for ES2023.
  51. Add support for the `v` flag to regular expressions.
  52. ## 8.8.2 (2023-01-23)
  53. ### Bug fixes
  54. Fix a bug that caused `allowHashBang` to be set to false when not provided, even with `ecmaVersion >= 14`.
  55. Fix an exception when passing no option object to `parse` or `new Parser`.
  56. Fix incorrect parse error on `if (0) let\n[astral identifier char]`.
  57. ## 8.8.1 (2022-10-24)
  58. ### Bug fixes
  59. Make type for `Comment` compatible with estree types.
  60. ## 8.8.0 (2022-07-21)
  61. ### Bug fixes
  62. Allow parentheses around spread args in destructuring object assignment.
  63. Fix an issue where the tree contained `directive` properties in when parsing with a language version that doesn't support them.
  64. ### New features
  65. Support hashbang comments by default in ECMAScript 2023 and later.
  66. ## 8.7.1 (2021-04-26)
  67. ### Bug fixes
  68. Stop handling `"use strict"` directives in ECMAScript versions before 5.
  69. Fix an issue where duplicate quoted export names in `export *` syntax were incorrectly checked.
  70. Add missing type for `tokTypes`.
  71. ## 8.7.0 (2021-12-27)
  72. ### New features
  73. Support quoted export names.
  74. Upgrade to Unicode 14.
  75. Add support for Unicode 13 properties in regular expressions.
  76. ### Bug fixes
  77. 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.
  78. ## 8.6.0 (2021-11-18)
  79. ### Bug fixes
  80. Fix a bug where an object literal with multiple `__proto__` properties would incorrectly be accepted if a later property value held an assigment.
  81. ### New features
  82. Support class private fields with the `in` operator.
  83. ## 8.5.0 (2021-09-06)
  84. ### Bug fixes
  85. Improve context-dependent tokenization in a number of corner cases.
  86. Fix location tracking after a 0x2028 or 0x2029 character in a string literal (which before did not increase the line number).
  87. Fix an issue where arrow function bodies in for loop context would inappropriately consume `in` operators.
  88. Fix wrong end locations stored on SequenceExpression nodes.
  89. Implement restriction that `for`/`of` loop LHS can't start with `let`.
  90. ### New features
  91. Add support for ES2022 class static blocks.
  92. Allow multiple input files to be passed to the CLI tool.
  93. ## 8.4.1 (2021-06-24)
  94. ### Bug fixes
  95. 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.
  96. ## 8.4.0 (2021-06-11)
  97. ### New features
  98. A new option, `allowSuperOutsideMethod`, can be used to suppress the error when `super` is used in the wrong context.
  99. ## 8.3.0 (2021-05-31)
  100. ### New features
  101. Default `allowAwaitOutsideFunction` to true for ECMAScript 2022 an higher.
  102. Add support for the `d` ([indices](https://github.com/tc39/proposal-regexp-match-indices)) regexp flag.
  103. ## 8.2.4 (2021-05-04)
  104. ### Bug fixes
  105. Fix spec conformity in corner case 'for await (async of ...)'.
  106. ## 8.2.3 (2021-05-04)
  107. ### Bug fixes
  108. Fix an issue where the library couldn't parse 'for (async of ...)'.
  109. Fix a bug in UTF-16 decoding that would read characters incorrectly in some circumstances.
  110. ## 8.2.2 (2021-04-29)
  111. ### Bug fixes
  112. 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.
  113. ## 8.2.1 (2021-04-24)
  114. ### Bug fixes
  115. Fix a regression introduced in 8.2.0 where static or async class methods with keyword names fail to parse.
  116. ## 8.2.0 (2021-04-24)
  117. ### New features
  118. Add support for ES2022 class fields and private methods.
  119. ## 8.1.1 (2021-04-12)
  120. ### Various
  121. Stop shipping source maps in the NPM package.
  122. ## 8.1.0 (2021-03-09)
  123. ### Bug fixes
  124. Fix a spurious error in nested destructuring arrays.
  125. ### New features
  126. Expose `allowAwaitOutsideFunction` in CLI interface.
  127. Make `allowImportExportAnywhere` also apply to `import.meta`.
  128. ## 8.0.5 (2021-01-25)
  129. ### Bug fixes
  130. Adjust package.json to work with Node 12.16.0 and 13.0-13.6.
  131. ## 8.0.4 (2020-10-05)
  132. ### Bug fixes
  133. Make `await x ** y` an error, following the spec.
  134. Fix potentially exponential regular expression.
  135. ## 8.0.3 (2020-10-02)
  136. ### Bug fixes
  137. Fix a wasteful loop during `Parser` creation when setting `ecmaVersion` to `"latest"`.
  138. ## 8.0.2 (2020-09-30)
  139. ### Bug fixes
  140. Make the TypeScript types reflect the current allowed values for `ecmaVersion`.
  141. Fix another regexp/division tokenizer issue.
  142. ## 8.0.1 (2020-08-12)
  143. ### Bug fixes
  144. Provide the correct value in the `version` export.
  145. ## 8.0.0 (2020-08-12)
  146. ### Bug fixes
  147. Disallow expressions like `(a = b) = c`.
  148. Make non-octal escape sequences a syntax error in strict mode.
  149. ### New features
  150. The package can now be loaded directly as an ECMAScript module in node 13+.
  151. Update to the set of Unicode properties from ES2021.
  152. ### Breaking changes
  153. 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.
  154. Some changes to method signatures that may be used by plugins.
  155. ## 7.4.0 (2020-08-03)
  156. ### New features
  157. Add support for logical assignment operators.
  158. Add support for numeric separators.
  159. ## 7.3.1 (2020-06-11)
  160. ### Bug fixes
  161. Make the string in the `version` export match the actual library version.
  162. ## 7.3.0 (2020-06-11)
  163. ### Bug fixes
  164. Fix a bug that caused parsing of object patterns with a property named `set` that had a default value to fail.
  165. ### New features
  166. Add support for optional chaining (`?.`).
  167. ## 7.2.0 (2020-05-09)
  168. ### Bug fixes
  169. Fix precedence issue in parsing of async arrow functions.
  170. ### New features
  171. Add support for nullish coalescing.
  172. Add support for `import.meta`.
  173. Support `export * as ...` syntax.
  174. Upgrade to Unicode 13.
  175. ## 6.4.1 (2020-03-09)
  176. ### Bug fixes
  177. More carefully check for valid UTF16 surrogate pairs in regexp validator.
  178. ## 7.1.1 (2020-03-01)
  179. ### Bug fixes
  180. Treat `\8` and `\9` as invalid escapes in template strings.
  181. Allow unicode escapes in property names that are keywords.
  182. Don't error on an exponential operator expression as argument to `await`.
  183. More carefully check for valid UTF16 surrogate pairs in regexp validator.
  184. ## 7.1.0 (2019-09-24)
  185. ### Bug fixes
  186. Disallow trailing object literal commas when ecmaVersion is less than 5.
  187. ### New features
  188. 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.
  189. ## 7.0.0 (2019-08-13)
  190. ### Breaking changes
  191. 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).
  192. Makes 10 (ES2019) the default value for the `ecmaVersion` option.
  193. ## 6.3.0 (2019-08-12)
  194. ### New features
  195. `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.
  196. ## 6.2.1 (2019-07-21)
  197. ### Bug fixes
  198. Fix bug causing Acorn to treat some characters as identifier characters that shouldn't be treated as such.
  199. Fix issue where setting the `allowReserved` option to `"never"` allowed reserved words in some circumstances.
  200. ## 6.2.0 (2019-07-04)
  201. ### Bug fixes
  202. Improve valid assignment checking in `for`/`in` and `for`/`of` loops.
  203. Disallow binding `let` in patterns.
  204. ### New features
  205. Support bigint syntax with `ecmaVersion` >= 11.
  206. Support dynamic `import` syntax with `ecmaVersion` >= 11.
  207. Upgrade to Unicode version 12.
  208. ## 6.1.1 (2019-02-27)
  209. ### Bug fixes
  210. Fix bug that caused parsing default exports of with names to fail.
  211. ## 6.1.0 (2019-02-08)
  212. ### Bug fixes
  213. Fix scope checking when redefining a `var` as a lexical binding.
  214. ### New features
  215. Split up `parseSubscripts` to use an internal `parseSubscript` method to make it easier to extend with plugins.
  216. ## 6.0.7 (2019-02-04)
  217. ### Bug fixes
  218. Check that exported bindings are defined.
  219. Don't treat `\u180e` as a whitespace character.
  220. Check for duplicate parameter names in methods.
  221. Don't allow shorthand properties when they are generators or async methods.
  222. Forbid binding `await` in async arrow function's parameter list.
  223. ## 6.0.6 (2019-01-30)
  224. ### Bug fixes
  225. The content of class declarations and expressions is now always parsed in strict mode.
  226. Don't allow `let` or `const` to bind the variable name `let`.
  227. Treat class declarations as lexical.
  228. Don't allow a generator function declaration as the sole body of an `if` or `else`.
  229. Ignore `"use strict"` when after an empty statement.
  230. Allow string line continuations with special line terminator characters.
  231. Treat `for` bodies as part of the `for` scope when checking for conflicting bindings.
  232. Fix bug with parsing `yield` in a `for` loop initializer.
  233. Implement special cases around scope checking for functions.
  234. ## 6.0.5 (2019-01-02)
  235. ### Bug fixes
  236. Fix TypeScript type for `Parser.extend` and add `allowAwaitOutsideFunction` to options type.
  237. Don't treat `let` as a keyword when the next token is `{` on the next line.
  238. Fix bug that broke checking for parentheses around an object pattern in a destructuring assignment when `preserveParens` was on.
  239. ## 6.0.4 (2018-11-05)
  240. ### Bug fixes
  241. Further improvements to tokenizing regular expressions in corner cases.
  242. ## 6.0.3 (2018-11-04)
  243. ### Bug fixes
  244. Fix bug in tokenizing an expression-less return followed by a function followed by a regular expression.
  245. Remove stray symlink in the package tarball.
  246. ## 6.0.2 (2018-09-26)
  247. ### Bug fixes
  248. Fix bug where default expressions could fail to parse inside an object destructuring assignment expression.
  249. ## 6.0.1 (2018-09-14)
  250. ### Bug fixes
  251. Fix wrong value in `version` export.
  252. ## 6.0.0 (2018-09-14)
  253. ### Bug fixes
  254. Better handle variable-redefinition checks for catch bindings and functions directly under if statements.
  255. Forbid `new.target` in top-level arrow functions.
  256. Fix issue with parsing a regexp after `yield` in some contexts.
  257. ### New features
  258. The package now comes with TypeScript definitions.
  259. ### Breaking changes
  260. The default value of the `ecmaVersion` option is now 9 (2018).
  261. Plugins work differently, and will have to be rewritten to work with this version.
  262. The loose parser and walker have been moved into separate packages (`acorn-loose` and `acorn-walk`).
  263. ## 5.7.3 (2018-09-10)
  264. ### Bug fixes
  265. Fix failure to tokenize regexps after expressions like `x.of`.
  266. Better error message for unterminated template literals.
  267. ## 5.7.2 (2018-08-24)
  268. ### Bug fixes
  269. Properly handle `allowAwaitOutsideFunction` in for statements.
  270. Treat function declarations at the top level of modules like let bindings.
  271. Don't allow async function declarations as the only statement under a label.
  272. ## 5.7.0 (2018-06-15)
  273. ### New features
  274. Upgraded to Unicode 11.
  275. ## 5.6.0 (2018-05-31)
  276. ### New features
  277. Allow U+2028 and U+2029 in string when ECMAVersion >= 10.
  278. Allow binding-less catch statements when ECMAVersion >= 10.
  279. Add `allowAwaitOutsideFunction` option for parsing top-level `await`.
  280. ## 5.5.3 (2018-03-08)
  281. ### Bug fixes
  282. A _second_ republish of the code in 5.5.1, this time with yarn, to hopefully get valid timestamps.
  283. ## 5.5.2 (2018-03-08)
  284. ### Bug fixes
  285. 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.
  286. ## 5.5.1 (2018-03-06)
  287. ### Bug fixes
  288. Fix misleading error message for octal escapes in template strings.
  289. ## 5.5.0 (2018-02-27)
  290. ### New features
  291. The identifier character categorization is now based on Unicode version 10.
  292. Acorn will now validate the content of regular expressions, including new ES9 features.
  293. ## 5.4.0 (2018-02-01)
  294. ### Bug fixes
  295. Disallow duplicate or escaped flags on regular expressions.
  296. Disallow octal escapes in strings in strict mode.
  297. ### New features
  298. Add support for async iteration.
  299. Add support for object spread and rest.
  300. ## 5.3.0 (2017-12-28)
  301. ### Bug fixes
  302. Fix parsing of floating point literals with leading zeroes in loose mode.
  303. Allow duplicate property names in object patterns.
  304. Don't allow static class methods named `prototype`.
  305. Disallow async functions directly under `if` or `else`.
  306. Parse right-hand-side of `for`/`of` as an assignment expression.
  307. Stricter parsing of `for`/`in`.
  308. Don't allow unicode escapes in contextual keywords.
  309. ### New features
  310. Parsing class members was factored into smaller methods to allow plugins to hook into it.
  311. ## 5.2.1 (2017-10-30)
  312. ### Bug fixes
  313. Fix a token context corruption bug.
  314. ## 5.2.0 (2017-10-30)
  315. ### Bug fixes
  316. Fix token context tracking for `class` and `function` in property-name position.
  317. Make sure `%*` isn't parsed as a valid operator.
  318. Allow shorthand properties `get` and `set` to be followed by default values.
  319. Disallow `super` when not in callee or object position.
  320. ### New features
  321. Support [`directive` property](https://github.com/estree/estree/compare/b3de58c9997504d6fba04b72f76e6dd1619ee4eb...1da8e603237144f44710360f8feb7a9977e905e0) on directive expression statements.
  322. ## 5.1.2 (2017-09-04)
  323. ### Bug fixes
  324. Disable parsing of legacy HTML-style comments in modules.
  325. Fix parsing of async methods whose names are keywords.
  326. ## 5.1.1 (2017-07-06)
  327. ### Bug fixes
  328. Fix problem with disambiguating regexp and division after a class.
  329. ## 5.1.0 (2017-07-05)
  330. ### Bug fixes
  331. Fix tokenizing of regexps in an object-desctructuring `for`/`of` loop and after `yield`.
  332. Parse zero-prefixed numbers with non-octal digits as decimal.
  333. Allow object/array patterns in rest parameters.
  334. Don't error when `yield` is used as a property name.
  335. Allow `async` as a shorthand object property.
  336. ### New features
  337. Implement the [template literal revision proposal](https://github.com/tc39/proposal-template-literal-revision) for ES9.
  338. ## 5.0.3 (2017-04-01)
  339. ### Bug fixes
  340. Fix spurious duplicate variable definition errors for named functions.
  341. ## 5.0.2 (2017-03-30)
  342. ### Bug fixes
  343. A binary operator after a parenthesized arrow expression is no longer incorrectly treated as an error.
  344. ## 5.0.0 (2017-03-28)
  345. ### Bug fixes
  346. Raise an error for duplicated lexical bindings.
  347. Fix spurious error when an assignement expression occurred after a spread expression.
  348. Accept regular expressions after `of` (in `for`/`of`), `yield` (in a generator), and braced arrow functions.
  349. Allow labels in front or `var` declarations, even in strict mode.
  350. ### Breaking changes
  351. 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`.
  352. ## 4.0.11 (2017-02-07)
  353. ### Bug fixes
  354. Allow all forms of member expressions to be parenthesized as lvalue.
  355. ## 4.0.10 (2017-02-07)
  356. ### Bug fixes
  357. Don't expect semicolons after default-exported functions or classes, even when they are expressions.
  358. Check for use of `'use strict'` directives in non-simple parameter functions, even when already in strict mode.
  359. ## 4.0.9 (2017-02-06)
  360. ### Bug fixes
  361. Fix incorrect error raised for parenthesized simple assignment targets, so that `(x) = 1` parses again.
  362. ## 4.0.8 (2017-02-03)
  363. ### Bug fixes
  364. Solve spurious parenthesized pattern errors by temporarily erring on the side of accepting programs that our delayed errors don't handle correctly yet.
  365. ## 4.0.7 (2017-02-02)
  366. ### Bug fixes
  367. Accept invalidly rejected code like `(x).y = 2` again.
  368. Don't raise an error when a function _inside_ strict code has a non-simple parameter list.
  369. ## 4.0.6 (2017-02-02)
  370. ### Bug fixes
  371. Fix exponential behavior (manifesting itself as a complete hang for even relatively small source files) introduced by the new 'use strict' check.
  372. ## 4.0.5 (2017-02-02)
  373. ### Bug fixes
  374. Disallow parenthesized pattern expressions.
  375. Allow keywords as export names.
  376. Don't allow the `async` keyword to be parenthesized.
  377. Properly raise an error when a keyword contains a character escape.
  378. Allow `"use strict"` to appear after other string literal expressions.
  379. Disallow labeled declarations.
  380. ## 4.0.4 (2016-12-19)
  381. ### Bug fixes
  382. Fix crash when `export` was followed by a keyword that can't be
  383. exported.
  384. ## 4.0.3 (2016-08-16)
  385. ### Bug fixes
  386. Allow regular function declarations inside single-statement `if` branches in loose mode. Forbid them entirely in strict mode.
  387. Properly parse properties named `async` in ES2017 mode.
  388. Fix bug where reserved words were broken in ES2017 mode.
  389. ## 4.0.2 (2016-08-11)
  390. ### Bug fixes
  391. Don't ignore period or 'e' characters after octal numbers.
  392. Fix broken parsing for call expressions in default parameter values of arrow functions.
  393. ## 4.0.1 (2016-08-08)
  394. ### Bug fixes
  395. Fix false positives in duplicated export name errors.
  396. ## 4.0.0 (2016-08-07)
  397. ### Breaking changes
  398. The default `ecmaVersion` option value is now 7.
  399. A number of internal method signatures changed, so plugins might need to be updated.
  400. ### Bug fixes
  401. The parser now raises errors on duplicated export names.
  402. `arguments` and `eval` can now be used in shorthand properties.
  403. Duplicate parameter names in non-simple argument lists now always produce an error.
  404. ### New features
  405. The `ecmaVersion` option now also accepts year-style version numbers
  406. (2015, etc).
  407. Support for `async`/`await` syntax when `ecmaVersion` is >= 8.
  408. Support for trailing commas in call expressions when `ecmaVersion` is >= 8.
  409. ## 3.3.0 (2016-07-25)
  410. ### Bug fixes
  411. Fix bug in tokenizing of regexp operator after a function declaration.
  412. Fix parser crash when parsing an array pattern with a hole.
  413. ### New features
  414. Implement check against complex argument lists in functions that enable strict mode in ES7.
  415. ## 3.2.0 (2016-06-07)
  416. ### Bug fixes
  417. Improve handling of lack of unicode regexp support in host
  418. environment.
  419. Properly reject shorthand properties whose name is a keyword.
  420. ### New features
  421. Visitors created with `visit.make` now have their base as _prototype_, rather than copying properties into a fresh object.
  422. ## 3.1.0 (2016-04-18)
  423. ### Bug fixes
  424. Properly tokenize the division operator directly after a function expression.
  425. Allow trailing comma in destructuring arrays.
  426. ## 3.0.4 (2016-02-25)
  427. ### Fixes
  428. Allow update expressions as left-hand-side of the ES7 exponential operator.
  429. ## 3.0.2 (2016-02-10)
  430. ### Fixes
  431. Fix bug that accidentally made `undefined` a reserved word when parsing ES7.
  432. ## 3.0.0 (2016-02-10)
  433. ### Breaking changes
  434. The default value of the `ecmaVersion` option is now 6 (used to be 5).
  435. Support for comprehension syntax (which was dropped from the draft spec) has been removed.
  436. ### Fixes
  437. `let` and `yield` are now “contextual keywords”, meaning you can mostly use them as identifiers in ES5 non-strict code.
  438. A parenthesized class or function expression after `export default` is now parsed correctly.
  439. ### New features
  440. When `ecmaVersion` is set to 7, Acorn will parse the exponentiation operator (`**`).
  441. The identifier character ranges are now based on Unicode 8.0.0.
  442. Plugins can now override the `raiseRecoverable` method to override the way non-critical errors are handled.
  443. ## 2.7.0 (2016-01-04)
  444. ### Fixes
  445. Stop allowing rest parameters in setters.
  446. Disallow `y` rexexp flag in ES5.
  447. Disallow `\00` and `\000` escapes in strict mode.
  448. Raise an error when an import name is a reserved word.
  449. ## 2.6.2 (2015-11-10)
  450. ### Fixes
  451. Don't crash when no options object is passed.
  452. ## 2.6.0 (2015-11-09)
  453. ### Fixes
  454. Add `await` as a reserved word in module sources.
  455. Disallow `yield` in a parameter default value for a generator.
  456. Forbid using a comma after a rest pattern in an array destructuring.
  457. ### New features
  458. Support parsing stdin in command-line tool.
  459. ## 2.5.0 (2015-10-27)
  460. ### Fixes
  461. Fix tokenizer support in the command-line tool.
  462. Stop allowing `new.target` outside of functions.
  463. Remove legacy `guard` and `guardedHandler` properties from try nodes.
  464. Stop allowing multiple `__proto__` properties on an object literal in strict mode.
  465. Don't allow rest parameters to be non-identifier patterns.
  466. Check for duplicate paramter names in arrow functions.