<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Refactoring HTMLMediaElement getStartDate() implementation"
   href="https://bugs.webkit.org/show_bug.cgi?id=152181#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Refactoring HTMLMediaElement getStartDate() implementation"
   href="https://bugs.webkit.org/show_bug.cgi?id=152181">bug 152181</a>
              from <span class="vcard"><a class="email" href="mailto:darin&#64;apple.com" title="Darin Adler &lt;darin&#64;apple.com&gt;"> <span class="fn">Darin Adler</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=267179&amp;action=diff" name="attach_267179" title="Just checking if this change may not break other tests">attachment 267179</a> <a href="attachment.cgi?id=267179&amp;action=edit" title="Just checking if this change may not break other tests">[details]</a></span>
Just checking if this change may not break other tests

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

This patch should only contain the change to HTMLMediaElement.idl. Deleting all the unneeded code can be done in a follow-up that does not change behavior.

<span class="quote">&gt; Source/WebCore/bindings/js/JSDOMBinding.cpp:124
&gt;  JSValue jsDateOrNull(ExecState* exec, double value)
&gt;  {
&gt; -    if (!std::isfinite(value))
&gt; +    if (std::isinf(value))
&gt;          return jsNull();
&gt; +    if (std::isnan(value))
&gt; +        return DateInstance::create(exec, exec-&gt;lexicalGlobalObject()-&gt;dateStructure());
&gt;      return DateInstance::create(exec-&gt;vm(), exec-&gt;lexicalGlobalObject()-&gt;dateStructure(), value);
&gt;  }</span >

This changes the behavior for every callers of jsDateOrNull when the value is a NaN. We do not want to make that global change.</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>