<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><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> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [ES6]. Implement Annex B.3.3 function hoisting rules for eval"
   href="https://bugs.webkit.org/show_bug.cgi?id=163208">bug 163208</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Attachment #299744 is obsolete</td>
           <td>1
           </td>
           <td>
               &nbsp;
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [ES6]. Implement Annex B.3.3 function hoisting rules for eval"
   href="https://bugs.webkit.org/show_bug.cgi?id=163208#c30">Comment # 30</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [ES6]. Implement Annex B.3.3 function hoisting rules for eval"
   href="https://bugs.webkit.org/show_bug.cgi?id=163208">bug 163208</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>Comment on <span class=""><a href="attachment.cgi?id=299744&amp;action=diff" name="attach_299744" title="Patch">attachment 299744</a> <a href="attachment.cgi?id=299744&amp;action=edit" title="Patch">[details]</a></span>
Patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=299744&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=299744&amp;action=review</a>

Thanks for review!!!

<span class="quote">&gt;&gt; Source/JavaScriptCore/ChangeLog:19
&gt;&gt; +        op_is_scope_var_type - check if scope with variable is function scope           
&gt; 
&gt; Let's call this op_is_var_scope. 
&gt; 
&gt; I don't understand your explanation &quot;check if scope with variable is function scope&quot;, but since op_resolve_closest_or_var_scope names something a &quot;var scope&quot;, I'm inferring that this check applies to the same thing.</span >

I've tried to make it more clear in new patch

<span class="quote">&gt;&gt; Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h:697
&gt;&gt; +        RegisterID* emitResolveOuterVarScope(RegisterID* dst, const Identifier&amp;);
&gt; 
&gt; It is bad that this function name does not match the name of the bytecode it emits.</span >

Fixed

<span class="quote">&gt;&gt; Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h:698
&gt;&gt; +        RegisterID* emitCheckIfScopeIsVarType(RegisterID* dst, RegisterID* scope);
&gt; 
&gt; Same comment here.</span >

Fixed

<span class="quote">&gt;&gt; Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h:699
&gt;&gt; +        RegisterID* emitPutToOuterScope(RegisterID* scope, const Identifier&amp;, RegisterID* value, ResolveMode, InitializationMode);
&gt; 
&gt; How is emitPutToOuterScope different from emitPutToScope?</span >

Yeah, now it is the same. Removed

<span class="quote">&gt;&gt; Source/JavaScriptCore/runtime/CommonSlowPaths.cpp:814
&gt;&gt; +SLOW_PATH_DECL(slow_path_resolve_closest_var_scope)
&gt; 
&gt; You forgot the word &quot;or&quot; in this name, which changes its meaning significantly.</span >

Fixed

<span class="quote">&gt;&gt; Source/JavaScriptCore/runtime/JSScope.cpp:220
&gt;&gt; +ALWAYS_INLINE JSObject* JSScope::baseResolve(ExecState* exec, JSScope* scope, const Identifier&amp; ident, FinishResolveEarlierFunctor finishResolveEarlier)
&gt; 
&gt; There's no need to use a different function name here. You can call this resolve.</span >

Fixed

<span class="quote">&gt;&gt; Source/JavaScriptCore/runtime/JSScope.cpp:256
&gt;&gt; +        if (finishResolveEarlier(scope))
&gt; 
&gt; I would call this 'accept' or 'predicate'.</span >

Renamed</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>