[Webkit-unassigned] [Bug 160322] Undefined Behavior in JSValue cast from NaN

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 29 14:14:44 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=160322

--- Comment #8 from Jonathan Bedard <jbedard at apple.com> ---
It is possible that some compilers optimize out the double constructor.  Open source clang (I specify open source because this bug was discovered with open source clang, not the version shipped with the operating system) almost certainly does not, otherwise this behavior would never have been caught in the first place.  This is something I double check on.

I also agree with Kieth that in practice, the double constructor is not an issue, and can be ignored.

The question only question left, then, is whether the clarification of jsNaN() is worth it.  I do think that regardless, this is probably worth a comment in the JSValue(double) constructor.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160729/a7e352d5/attachment.html>


More information about the webkit-unassigned mailing list