<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WebRTC: Replace RTCPeerConnection custom constructor with a JS built-in constructor"
   href="https://bugs.webkit.org/show_bug.cgi?id=158832#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - WebRTC: Replace RTCPeerConnection custom constructor with a JS built-in constructor"
   href="https://bugs.webkit.org/show_bug.cgi?id=158832">bug 158832</a>
              from <span class="vcard"><a class="email" href="mailto:youennf&#64;gmail.com" title="youenn fablet &lt;youennf&#64;gmail.com&gt;"> <span class="fn">youenn fablet</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=281665&amp;action=diff" name="attach_281665" title="Updated patch">attachment 281665</a> <a href="attachment.cgi?id=281665&amp;action=edit" title="Updated patch">[details]</a></span>
Updated patch

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

<span class="quote">&gt; Source/WebCore/Modules/mediastream/RTCPeerConnection.cpp:83
&gt; +    Document&amp; document = downcast&lt;Document&gt;(*scriptExecutionContext());</span >

It might be better to use CallWith=Document in the IDL to pass Document as parameter to the IDL

<span class="quote">&gt; Source/WebCore/Modules/mediastream/RTCPeerConnection.h:66
&gt; +    void initializeWith(const Dictionary&amp; rtcConfiguration, ExceptionCode&amp;);</span >

Is &quot;rtcConfiguration&quot; needed?

<span class="quote">&gt; Source/WebCore/Modules/mediastream/RTCPeerConnection.js:44
&gt; +        this.&#64;initializeWith(configuration);</span >

I am not quite sure but can we find a better handling of errors than catching-and-rethrowing?
Would it be more readable to make initializeWith return a status code instead?</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>