Fix handling of SyntaxError in FormalParameterList during 'new Function' constructor operation.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan
2015-10-29 13:09:32 +03:00
parent 2bfd754ef3
commit 3025bd1750
5 changed files with 96 additions and 277 deletions
+10
View File
@@ -122,3 +122,13 @@ catch (e)
{
assert (e instanceof SyntaxError);
}
try
{
new Function ('a;b', 'return;');
assert (false);
}
catch (e)
{
assert (e instanceof SyntaxError);
}