File tree Expand file tree Collapse file tree 10 files changed +1112
-285
lines changed
doc/contributing/maintaining Expand file tree Collapse file tree 10 files changed +1112
-285
lines changed Original file line number Diff line number Diff line change 1+ ## 8.9.0 (2023-06-16)
2+
3+ ### Bug fixes
4+
5+ Forbid dynamic import after ` new ` , even when part of a member expression.
6+
7+ ### New features
8+
9+ Add Unicode properties for ES2023.
10+
11+ Add support for the ` v ` flag to regular expressions.
12+
113## 8.8.2 (2023-01-23)
214
315### Bug fixes
Original file line number Diff line number Diff line change @@ -96,10 +96,11 @@ required):
9696 (when ` sourceType ` is not ` "module" ` ).
9797
9898- ** allowAwaitOutsideFunction** : If ` false ` , ` await ` expressions can
99- only appear inside ` async ` functions. Defaults to ` true ` for
100- ` ecmaVersion ` 2022 and later, ` false ` for lower versions. Setting this option to
101- ` true ` allows to have top-level ` await ` expressions. They are
102- still not allowed in non-` async ` functions, though.
99+ only appear inside ` async ` functions. Defaults to ` true ` in modules
100+ for ` ecmaVersion ` 2022 and later, ` false ` for lower versions.
101+ Setting this option to ` true ` allows to have top-level ` await `
102+ expressions. They are still not allowed in non-` async ` functions,
103+ though.
103104
104105- ** allowSuperOutsideMethod** : By default, ` super ` outside a method
105106 raises an error. Set this to ` true ` to accept such code.
Original file line number Diff line number Diff line change 1+ export {
2+ Node ,
3+ Parser ,
4+ Position ,
5+ SourceLocation ,
6+ TokContext ,
7+ Token ,
8+ TokenType ,
9+ defaultOptions ,
10+ getLineInfo ,
11+ isIdentifierChar ,
12+ isIdentifierStart ,
13+ isNewLine ,
14+ lineBreak ,
15+ lineBreakG ,
16+ parse ,
17+ parseExpressionAt ,
18+ tokContexts ,
19+ tokTypes ,
20+ tokenizer ,
21+ version ,
22+ AbstractToken ,
23+ Comment ,
24+ Options ,
25+ ecmaVersion ,
26+ } from "./acorn.js" ;
Original file line number Diff line number Diff line change @@ -249,4 +249,44 @@ declare namespace acorn {
249249 const lineBreakG : RegExp
250250
251251 const version : string
252+
253+ const nonASCIIwhitespace : RegExp
254+
255+ const keywordTypes : {
256+ _break : TokenType
257+ _case : TokenType
258+ _catch : TokenType
259+ _continue : TokenType
260+ _debugger : TokenType
261+ _default : TokenType
262+ _do : TokenType
263+ _else : TokenType
264+ _finally : TokenType
265+ _for : TokenType
266+ _function : TokenType
267+ _if : TokenType
268+ _return : TokenType
269+ _switch : TokenType
270+ _throw : TokenType
271+ _try : TokenType
272+ _var : TokenType
273+ _const : TokenType
274+ _while : TokenType
275+ _with : TokenType
276+ _new : TokenType
277+ _this : TokenType
278+ _super : TokenType
279+ _class : TokenType
280+ _extends : TokenType
281+ _export : TokenType
282+ _import : TokenType
283+ _null : TokenType
284+ _true : TokenType
285+ _false : TokenType
286+ _in : TokenType
287+ _instanceof : TokenType
288+ _typeof : TokenType
289+ _void : TokenType
290+ _delete : TokenType
291+ }
252292}
You can’t perform that action at this time.
0 commit comments