Skip to content

Commit 49ae824

Browse files
committed
Enabling stack args in functions having exception handling. OS #17869732
1 parent d720588 commit 49ae824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Backend/Func.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ Func::Func(JitArenaAllocator *alloc, JITTimeWorkItem * workItem,
185185

186186
if (m_workItem->Type() == JsFunctionType &&
187187
GetJITFunctionBody()->DoBackendArgumentsOptimization() &&
188-
!GetJITFunctionBody()->HasTry())
188+
(!GetJITFunctionBody()->HasTry() || this->DoOptimizeTry()))
189189
{
190190
// doBackendArgumentsOptimization bit is set when there is no eval inside a function
191191
// as determined by the bytecode generator.

0 commit comments

Comments
 (0)