Refactor and cleanup the RegExp parser
JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan szledan.u-szeged@partner.samsung.com
This commit is contained in:
committed by
Dániel Bátyai
parent
0a1b6eb4c7
commit
6ec05ff07f
@@ -101,7 +101,6 @@ try
|
||||
catch (e)
|
||||
{
|
||||
assert (e instanceof SyntaxError);
|
||||
assert (e.message === "invalid character class");
|
||||
}
|
||||
|
||||
try
|
||||
@@ -112,5 +111,4 @@ try
|
||||
catch (e)
|
||||
{
|
||||
assert (e instanceof SyntaxError);
|
||||
assert (e.message === "invalid character class");
|
||||
}
|
||||
|
||||
@@ -53,3 +53,6 @@ assert (r.exec ("aaaaaaa") == "aaaaaa");
|
||||
|
||||
r = new RegExp (".*");
|
||||
assert (r.exec ("abcdefghijkl") == "abcdefghijkl");
|
||||
|
||||
r = /\n/;
|
||||
assert (r.exec ("\n") == "\n");
|
||||
|
||||
Reference in New Issue
Block a user