Commit 73ee752c authored by Matthew Gaudet's avatar Matthew Gaudet
Browse files

Bug 1627047 - Use FunctionBox to declare arguments object r=caroline

Depends on D69437

Differential Revision: https://phabricator.services.mozilla.com/D69438

--HG--
extra : moz-landing-system : lando
parent 00f2cfb5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -543,8 +543,7 @@ bool ParseContext::declareFunctionArgumentsObject(

  bool tryDeclareArguments;
  if (canSkipLazyClosedOverBindings) {
    tryDeclareArguments =
        funbox->function()->baseScript()->shouldDeclareArguments();
    tryDeclareArguments = funbox->declaredArguments();
  } else {
    tryDeclareArguments = hasUsedFunctionSpecialName(usedNames, argumentsName);
  }