From fedf26948f2958102745a833813bea22d6dba37c Mon Sep 17 00:00:00 2001 From: Haled Odat <8566042+HalidOdat@users.noreply.github.com> Date: Thu, 28 Sep 2023 01:44:44 +0200 Subject: [PATCH] Relax function arguments optimization --- boa_engine/src/bytecompiler/function.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/boa_engine/src/bytecompiler/function.rs b/boa_engine/src/bytecompiler/function.rs index dba2b1f1dec..9d18464583c 100644 --- a/boa_engine/src/bytecompiler/function.rs +++ b/boa_engine/src/bytecompiler/function.rs @@ -173,9 +173,6 @@ impl FunctionCompiler { let can_optimize = can_optimize_params && can_optimize_body - && !parameters.has_arguments() - && !parameters.has_duplicates() - && !parameters.has_rest_parameter() && parameters.is_simple() && self.can_optimize;