[Webkit-unassigned] [Bug 46990] New: TypedArray - NaNs converted to 0 in Float32 array
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Oct 1 09:44:52 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=46990
Summary: TypedArray - NaNs converted to 0 in Float32 array
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh
OS/Version: Mac OS X 10.6
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebGL
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: josh at lindenlab.com
var n = 1 / "abc";
>> NaN
new Float32Array([n])[0];
>> 0, expecting NaN
Other edge cases (positive/negative infinities, negative zero) behave correctly:
new Float32Array([1/0])[0];
>> Infinity
new Float32Array([-1/0])[0];
>> -Infinity
var negzero = -0;
function isnegzero(x) { return 1/x == -Infinity; }
isnegzero(new Float32Array([negzero])[0]);
>> true
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list