Closed
Bug 624483
Opened 14 years ago
Closed 13 years ago
JM: different output with testcase involving typed arrays, "Infinity"
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
blocking2.0 | --- | .x+ |
People
(Reporter: jandem, Assigned: dvander)
References
Details
(Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file)
2.52 KB,
patch
|
vlad
:
review+
|
Details | Diff | Splinter Review |
This script: --- var arr = new Uint8ClampedArray(16); for (var i = 0; i < 16; i++) { arr[i] = "Infinity"; } assertEq(arr[14], 255); --- Fails with -m: Error: Assertion failed: got 0, expected 255
Reporter | ||
Updated•14 years ago
|
Blocks: Jaeger
Summary: JM: different output involving typed arrays, "Infinity" → JM: different output with testcase involving typed arrays, "Infinity"
Reporter | ||
Updated•14 years ago
|
blocking2.0: --- → ?
Assignee | ||
Updated•14 years ago
|
blocking2.0: ? → .x
Comment 1•14 years ago
|
||
Jan, does this fail with non-infinite numbers larger than 255 too? Issues in Uint8ClampedArray in particular worry me compat-wise, since that's pretty widely used on the web (as canvas imagedata's .data property).
Reporter | ||
Comment 2•14 years ago
|
||
(In reply to comment #1) > Jan, does this fail with non-infinite numbers larger than 255 too? It fails also with "1e12" and "1e15", but not "1e14" and "1e16". And only if they are strings. I tried some random numbers between 255 and 1000 but was unable to reproduce.
Reporter | ||
Comment 3•14 years ago
|
||
FWIW, "2147483648" also fails. I think integers are OK, maybe some smaller doubles also fail, not sure.
Assignee | ||
Comment 4•14 years ago
|
||
I investigated this to see if it was sg:critical, it's not but the bug is pretty easy.
Comment 5•14 years ago
|
||
Does that patch make ClampIntForUint8Array unused?
Assignee | ||
Comment 6•14 years ago
|
||
Nope, it's still there.
Assignee | ||
Comment 7•13 years ago
|
||
vlad: review ping
Attachment #502604 -
Flags: review?(vladimir) → review+
Assignee | ||
Comment 8•13 years ago
|
||
Thanks! http://hg.mozilla.org/tracemonkey/rev/7fcc58bfd920
Whiteboard: fixed-in-tracemonkey
Comment 9•13 years ago
|
||
cdleary-bot mozilla-central merge info: http://hg.mozilla.org/mozilla-central/rev/7fcc58bfd920
Updated•13 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•