Fix pre-scanner function name parsing. (#3093)
The function names of classes were incorrectly parsed. Also made the parsing more strict (more issues were captured by the pre-scanner). Fixes #3088 Fixes #3089 JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
committed by
Dániel Bátyai
parent
fbde788d1f
commit
f3d3c34c30
@@ -262,7 +262,10 @@ typedef enum
|
||||
{
|
||||
LEXER_SCAN_IDENT_NO_OPTS = (1u << 0), /**< no options */
|
||||
LEXER_SCAN_IDENT_PROPERTY = (1u << 1), /**< scan valid property names */
|
||||
LEXER_SCAN_IDENT_NO_KEYW = (1u << 2), /**< don\t scan keywords (e.g. get/set) */
|
||||
LEXER_SCAN_IDENT_NO_KEYW = (1u << 2), /**< don't scan keywords (e.g. get/set) */
|
||||
#if ENABLED (JERRY_ES2015_CLASS)
|
||||
LEXER_SCAN_CLASS_PROPERTY = (1u << 3), /**< scan valid class property names */
|
||||
#endif /* ENABLED (JERRY_ES2015_CLASS) */
|
||||
} lexer_scan_ident_opts_t;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user