Implement seeking in the pre-scanner info. (#3126)
After changing the lexing position, the current position of the scanner info must be moved as well. Fixes #3101 Fixes #3102 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
0eae2f6207
commit
40e63d1207
@@ -2436,6 +2436,8 @@ parser_parse_source (const uint8_t *arg_list_p, /**< function argument list */
|
||||
scanner_info_end.type = SCANNER_TYPE_END;
|
||||
context.next_scanner_info_p = &scanner_info_end;
|
||||
context.active_scanner_info_p = NULL;
|
||||
context.skipped_scanner_info_p = NULL;
|
||||
context.skipped_scanner_info_end_p = NULL;
|
||||
|
||||
context.last_cbc_opcode = PARSER_CBC_UNAVAILABLE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user