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;