Fix jsp_early_error_check_for_duplication_of_prop_names.

Related issue: #689

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan
2015-10-28 21:30:48 +03:00
parent f2c54fbe39
commit 04ca231fa4
2 changed files with 21 additions and 0 deletions
+1
View File
@@ -125,6 +125,7 @@ jsp_early_error_check_for_duplication_of_prop_names (bool is_strict, locus loc _
{
if (STACK_SIZE (props) - STACK_TOP (size_t_stack) < 2)
{
STACK_DROP (props, (size_t) (STACK_SIZE (props) - STACK_TOP (size_t_stack)));
STACK_DROP (size_t_stack, 1);
return;
}