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:
committed by
Zoltan Herczeg
parent
fc2218e828
commit
279d4d4119
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user