Merge remote-tracking branch 'origin/master' into custom

This commit is contained in:
Roy Tam 2020-04-11 10:43:22 +08:00
commit 8d7d46f06c
1186 changed files with 3894 additions and 2057 deletions

View file

@ -487,7 +487,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;