Math.atan2(Infinity, Infinity) produces wrong result
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Midori Web Browser |
New
|
Undecided
|
Unassigned |
Bug Description
The following function calls all produce NaN:
Math.atan2(
Math.atan2(
Math.atan2(
Math.atan2(
But they should give the results
+π/4
+3π/4
−π/4
−3π/4
See for example: https:/
The about:version information:
Command line C:\Program Files\Midori\
Midori 0.5.8 ((null)) Midori.exe
GTK+ 3.6.4 (3.6.4) Glib 2.34.3 (2.34.3)
WebKitGTK+ 1.10.2 (1.10.2) libSoup 2.40.3
cairo 1.12.10 (1.12.10) libnotify No
gcr No granite No
Platform Windows NT 6.2
Identification Mozilla/5.0 (Windows NT 6.2) AppleWebKit/537.6 (KHTML, like Gecko) Chrome/
Video Formats H264 [x] Ogg Theora [x] WebM [x]
Generally you would want to report this upstream to the WebkitGTK+ developers (at webkitgtk.org), but I believe this is fixed in later versions of webkit; I see the non-NaN answers you list with WebkitGTK+ 2.4.6.
I'm not sure what the status is w/r/t distributing a Windows build with a more recent version of webkit.