Do not check call_arguments twice through parsing call expression (#4346)
Checking call_arguments twice happens in a special case that only if call_arguments <= 1 and opcode variable has CBC_EXT_SUPER_CALL. JerryScript-DCO-1.0-Signed-off-by: Leesoo Ahn lsahn@ooseel.net
This commit is contained in:
@@ -2630,8 +2630,7 @@ parser_process_unary_expression (parser_context_t *context_p, /**< context */
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (call_arguments == 2)
|
||||||
if (call_arguments == 2)
|
|
||||||
{
|
{
|
||||||
if (opcode == CBC_CALL)
|
if (opcode == CBC_CALL)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user