Skip to content

Commit 40a21ee

Browse files
committed
[MERGE #5350 @rajatd] Enabling stack args in functions having exception handling. OS #17869732
Merge pull request #5350 from rajatd:stackargs-tc
2 parents 15389e0 + 49ae824 commit 40a21ee

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)