This commit is contained in:
Cameron Kaiser 2020-04-02 20:57:47 -07:00
parent 85161d5736
commit f1303f04c9
1 changed files with 1 additions and 1 deletions

View File

@ -529,7 +529,7 @@ class CompileInfo
// Function.arguments can be used to access all arguments in non-strict
// scripts, so we can't optimize out any arguments.
if ((hasArguments() || !script()->strict()) &&
if ((mayReadFrameArgsDirectly_ || !script()->strict()) &&
firstArgSlot() <= slot && slot - firstArgSlot() < nargs())
{
return true;