Invalid regexp patterns should not throw syntax error during parsing (#4038)
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
@@ -433,10 +433,15 @@ typedef struct
|
||||
*/
|
||||
#define PARSER_REGISTER_START 0x8000
|
||||
|
||||
/**
|
||||
* Invalid literal index
|
||||
*/
|
||||
#define PARSER_INVALID_LITERAL_INDEX UINT16_MAX
|
||||
|
||||
/**
|
||||
* Lastly emitted opcode is not a function literal
|
||||
*/
|
||||
#define PARSER_NOT_FUNCTION_LITERAL UINT16_MAX
|
||||
#define PARSER_NOT_FUNCTION_LITERAL PARSER_INVALID_LITERAL_INDEX
|
||||
|
||||
/**
|
||||
* Lastly emitted opcode is not a named function literal
|
||||
|
||||
Reference in New Issue
Block a user