jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

Raise syntax error on invalid unicode escape sequences

Open matetokodi opened this issue 1 year ago • 1 comments

Raise syntax error on invalid unicode escape sequences instead of failing with an assertion

The parser context was required for raising the error, which had to be added to all functions that can call lexer_unchecked_hex_to_character.

This fixes https://github.com/jerryscript-project/jerryscript/issues/5134

matetokodi avatar Jun 24 '24 11:06 matetokodi

This patch adds a lot of extra operations. I am thinking why this was not needed before, how we handled this in other cases.

zherczeg avatar Jun 25 '24 08:06 zherczeg