mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 22:35:07 +00:00
![]() This simplifies try_parse_arrow_function_expression() and fixes a few cases that should not produce an arrow function AST but did: (a,,) => {} (a b) => {} (a ...b) => {} (...b a) => {} The new parsing logic checks whether parens are expected and uses parse_function_parameters() if so, rolling back if a new syntax error occurs during that. Otherwise it's just an identifier in which case we parse the single parameter ourselves. |
||
---|---|---|
.. | ||
arrow-functions.js | ||
constructor-basic.js | ||
function-default-parameters.js | ||
function-hoisting.js | ||
function-length.js | ||
function-missing-arg.js | ||
function-name.js | ||
function-rest-params.js | ||
function-spread.js | ||
function-strict-mode.js | ||
function-this-in-arguments.js | ||
function-TypeError.js |