<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Super property access in base class constructor doesn't work"
   href="https://bugs.webkit.org/show_bug.cgi?id=166665#c10">Comment # 10</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Super property access in base class constructor doesn't work"
   href="https://bugs.webkit.org/show_bug.cgi?id=166665">bug 166665</a>
              from <span class="vcard"><a class="email" href="mailto:gskachkov&#64;gmail.com" title="GSkachkov &lt;gskachkov&#64;gmail.com&gt;"> <span class="fn">GSkachkov</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=166665#c8">comment #8</a>)
<span class="quote">&gt; Comment on <span class="bz_obsolete"><a href="attachment.cgi?id=299045&amp;action=diff" name="attach_299045" title="Patch">attachment 299045</a> <a href="attachment.cgi?id=299045&amp;action=edit" title="Patch">[details]</a></span>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=299045&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=299045&amp;action=review</a>
&gt; 
&gt; &gt; Source/JavaScriptCore/ChangeLog:8
&gt; &gt; +        Current patch fixed allow to use super inside of the constructor for classes 
&gt; 
&gt; Nit: &quot;Current patch fixed allow&quot; -&gt; &quot;Allow&quot;.
&gt; 
&gt; You should also explain how you're fixing the problem.
&gt; 
&gt; &gt; Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp:3696
&gt; &gt; +        } else if (metadata-&gt;superBinding() == SuperBinding::Needed)
&gt; &gt; +            superIsUsedInConstructor = true;
&gt; 
&gt; Why don't we just create a new boolean like &quot;needsHomeObject&quot; and set it to
&gt; true whenever this is true or m_classHeritage is set?
&gt; 
&gt; &gt; Source/JavaScriptCore/parser/Parser.h:1605
&gt; &gt; +    ALWAYS_INLINE SuperBinding getSuperBindingForConstructor(ConstructorKind constructorKind, SuperBinding superBinding, bool needsSuperBinding, bool currentScopeUsesEval, InnerArrowFunctionCodeFeatures innerArrowFunctionFeatures)
&gt; 
&gt; Nit: we don't prefix a getter function with &quot;get&quot; unless there is an out
&gt; argument.
&gt; See <a href="https://webkit.org/code-style-guidelines/#names-setter-getter">https://webkit.org/code-style-guidelines/#names-setter-getter</a>
&gt; 
&gt; &gt; Source/JavaScriptCore/parser/Parser.h:1612
&gt; &gt; +            methodSuperBinding = (needsSuperBinding || isSuperUsedInInnerArrowFunction || isEvalUsedInInnerArrowFunctions || currentScopeUsesEval) ? SuperBinding::Needed : SuperBinding::NotNeeded;
&gt; 
&gt; Why do we need super binding when eval is used inside an arrow function?
&gt; I don't see any test case of that either.</span >
I've tried to explicitly cover case when eval in arrow function so there can be used super, but currentScopeUsesEval should cover this case.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>