Implement RegExp unicode and sticky flags (#3379)
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
This commit is contained in:
@@ -2317,6 +2317,14 @@ lexer_construct_regexp_object (parser_context_t *context_p, /**< context */
|
||||
{
|
||||
flag = RE_FLAG_MULTILINE;
|
||||
}
|
||||
else if (source_p[0] == LIT_CHAR_LOWERCASE_U)
|
||||
{
|
||||
flag = RE_FLAG_UNICODE;
|
||||
}
|
||||
else if (source_p[0] == LIT_CHAR_LOWERCASE_Y)
|
||||
{
|
||||
flag = RE_FLAG_STICKY;
|
||||
}
|
||||
|
||||
if (flag == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user