Commit 00f2cfb5 authored by Matthew Gaudet's avatar Matthew Gaudet
Browse files

Bug 1627047 - Use FunctionBox to answer if we have thisBinding r=caroline

Depends on D69436

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

--HG--
extra : moz-landing-system : lando
parent 126822cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -510,7 +510,7 @@ bool ParseContext::declareFunctionThis(const UsedNameTracker& usedNames,

  bool declareThis;
  if (canSkipLazyClosedOverBindings) {
    declareThis = funbox->function()->baseScript()->functionHasThisBinding();
    declareThis = funbox->hasThisBinding();
  } else {
    declareThis = hasUsedFunctionSpecialName(usedNames, dotThis) ||
                  funbox->isClassConstructor();