From 290e8457596aa946a7a4f48801fc35f4389d024c Mon Sep 17 00:00:00 2001 From: Leesoo Ahn Date: Tue, 1 Dec 2020 19:29:25 +0900 Subject: [PATCH] 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 --- jerry-core/parser/js/js-parser-expr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jerry-core/parser/js/js-parser-expr.c b/jerry-core/parser/js/js-parser-expr.c index 09663068d..08f7a1eac 100644 --- a/jerry-core/parser/js/js-parser-expr.c +++ b/jerry-core/parser/js/js-parser-expr.c @@ -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) {