Add handling for RegExp unicode and sticky flags (#3341)

JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
This commit is contained in:
Dániel Bátyai
2019-11-22 14:04:03 +01:00
committed by Zoltan Herczeg
parent fc2218e828
commit 279d4d4119
10 changed files with 310 additions and 47 deletions
-9
View File
@@ -39,15 +39,6 @@ catch (e)
r = new RegExp ("a", "mig");
assert (r.toString () == "/a/gim");
try {
r.toString.call({}, "a");
assert (false)
}
catch (e)
{
assert (e instanceof TypeError);
}
/* Test continous calls to the exec method to see how does the match
* updates the lastIndex propertyand see if the match restarts.