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:
Leesoo Ahn 2020-12-01 19:29:25 +09:00 committed by GitHub
parent 5bd88e2723
commit 290e845759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2630,8 +2630,7 @@ parser_process_unary_expression (parser_context_t *context_p, /**< context */
continue;
}
}
if (call_arguments == 2)
else if (call_arguments == 2)
{
if (opcode == CBC_CALL)
{