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:
Szilard Ledan
2015-07-28 18:22:08 +02:00
committed by Dániel Bátyai
parent 0a1b6eb4c7
commit 6ec05ff07f
3 changed files with 220 additions and 266 deletions
-2
View File
@@ -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");