acorn
Advanced tools
Comparing version 8.2.4 to 8.3.0
@@ -0,1 +1,9 @@ | ||
## 8.3.0 (2021-05-31) | ||
### New features | ||
Default `allowAwaitOutsideFunction` to true for ECMAScript 2022 an higher. | ||
Add support for the `p` ([indices](https://github.com/tc39/proposal-regexp-match-indices)) regexp flag. | ||
## 8.2.4 (2021-05-04) | ||
@@ -2,0 +10,0 @@ |
@@ -19,3 +19,3 @@ { | ||
}, | ||
"version": "8.2.4", | ||
"version": "8.3.0", | ||
"engines": {"node": ">=0.4.0"}, | ||
@@ -22,0 +22,0 @@ "maintainers": [ |
@@ -97,4 +97,5 @@ # Acorn | ||
- **allowAwaitOutsideFunction**: By default, `await` expressions can | ||
only appear inside `async` functions. Setting this option to | ||
- **allowAwaitOutsideFunction**: If `false`, `await` expressions can | ||
only appear inside `async` functions. Defaults to `true` for | ||
`ecmaVersion` 2022 and later, `false` for lower versions. Setting this option to | ||
`true` allows to have top-level `await` expressions. They are | ||
@@ -101,0 +102,0 @@ still not allowed in non-`async` functions, though. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
452525
10024
277