Add missing RegExp case in the token_type_to_string

JerryScript-DCO-1.0-Signed-off-by: Szilard Ledan szledan.u-szeged@partner.samsung.com
This commit is contained in:
Szilard Ledan
2015-07-15 10:25:55 +02:00
committed by Evgeny Gavrin
parent 4fdb5249b9
commit d2457b1fc6
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -107,3 +107,13 @@ catch (e)
{
assert (e instanceof SyntaxError);
}
try
{
eval ("v_0 = {a: Math, /[]/};");
assert (false);
}
catch(e)
{
assert (e instanceof SyntaxError);
}