Temporary workaround (until parser is refactored) for fixing parse of expressions like '1 = 1'.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
committed by
Evgeny Gavrin
parent
44b7b95781
commit
7bc2c69147
@@ -658,6 +658,15 @@ dump_prop_setter_or_triple_address_res (void (*dumper) (operand, operand, operan
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (res.type == OPERAND_TMP)
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
* FIXME:
|
||||||
|
* Implement correct handling of references through parser operands
|
||||||
|
*/
|
||||||
|
PARSE_ERROR (JSP_EARLY_ERROR_REFERENCE, "Invalid left-hand-side expression", LIT_ITERATOR_POS_ZERO);
|
||||||
|
}
|
||||||
|
|
||||||
dumper (res, res, op);
|
dumper (res, res, op);
|
||||||
}
|
}
|
||||||
STACK_DROP (prop_getters, 1);
|
STACK_DROP (prop_getters, 1);
|
||||||
@@ -2072,6 +2081,14 @@ dump_prop_setter_or_variable_assignment_res (operand res, operand op)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (res.type == OPERAND_TMP)
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
* FIXME:
|
||||||
|
* Implement correct handling of references through parser operands
|
||||||
|
*/
|
||||||
|
PARSE_ERROR (JSP_EARLY_ERROR_REFERENCE, "Invalid left-hand-side expression", LIT_ITERATOR_POS_ZERO);
|
||||||
|
}
|
||||||
dump_variable_assignment (res, op);
|
dump_variable_assignment (res, op);
|
||||||
}
|
}
|
||||||
STACK_DROP (prop_getters, 1);
|
STACK_DROP (prop_getters, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user