davidot
81312986fe
LibJS: Disallow async generator functions called 'await' or 'yield'
2021-12-21 14:04:23 +01:00
davidot
5010d4c20c
LibJS: Don't match async \n function as an async function declaration
2021-11-30 17:05:32 +00:00
davidot
cbbfcd35e7
LibJS: Disallow await keywords in static init blocks
...
In static init blocks 'await' cannot be used. Note that this does not
cover all the cases since the parser currently cannot distinguish
between expressions within parenthesis and direct expressions.
2021-11-30 17:05:32 +00:00
davidot
c57721cf83
LibJS: Allow escaped 'async' as identifier
...
Since 'async' is only special if it occurs before a function it can be
used as escaped identifier in all cases.
2021-11-30 17:05:32 +00:00
davidot
32016d3924
LibJS: Allow object properties called 'async'
2021-11-30 17:05:32 +00:00
davidot
de46a2cff1
LibJS: Parse async arrow functions
2021-11-21 21:46:39 +00:00
Idan Horowitz
d5f637fa21
LibJS: Do not parse async methods with a new line after the "async"
...
This was already checked in normal function expressions, but was
missing for Object Expressions.
2021-11-10 18:11:26 +00:00
Idan Horowitz
04253c3254
LibJS: Add tests for async functions and await expressions
2021-11-10 08:48:27 +00:00