<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:sbarati&#64;apple.com" title="Saam Barati &lt;sbarati&#64;apple.com&gt;"> <span class="fn">Saam Barati</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Function.prototype.toString is incorrect for ArrowFunction"
   href="https://bugs.webkit.org/show_bug.cgi?id=148148">bug 148148</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 #259404 Flags</td>
           <td>review?, commit-queue?
           </td>
           <td>review+, commit-queue-
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Function.prototype.toString is incorrect for ArrowFunction"
   href="https://bugs.webkit.org/show_bug.cgi?id=148148#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Function.prototype.toString is incorrect for ArrowFunction"
   href="https://bugs.webkit.org/show_bug.cgi?id=148148">bug 148148</a>
              from <span class="vcard"><a class="email" href="mailto:sbarati&#64;apple.com" title="Saam Barati &lt;sbarati&#64;apple.com&gt;"> <span class="fn">Saam Barati</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=259404&amp;action=diff" name="attach_259404" title="Patch">attachment 259404</a> <a href="attachment.cgi?id=259404&amp;action=edit" title="Patch">[details]</a></span>
Patch

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

r=me
Please reupload with fixed Nit and added test cases for arrow function body expressions that don't end in &quot;;&quot; and I will r+/cq+

<span class="quote">&gt; Source/JavaScriptCore/parser/ASTBuilder.h:375
&gt; +        SourceCode source = m_sourceCode-&gt;subExpression(functionInfo.startOffset, functionInfo.body-&gt;isArrowFunctionBodyExpression() ? functionInfo.endOffset -1 : functionInfo.endOffset, functionInfo.startLine, functionInfo.bodyStartColumn);</span >

Nit: space between &quot;-&quot; and &quot;1&quot;

<span class="quote">&gt; Source/JavaScriptCore/parser/ASTBuilder.h:376
&gt;          ArrowFuncExprNode* result = new (m_parserArena) ArrowFuncExprNode(location, *functionInfo.name, functionInfo.body, source);</span >

The - 1 worries me. 
Does this work:
function foo(x) { print(x.toString() }
foo((y)=&gt;y)</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>