Closed
Bug 1309749
Opened 8 years ago
Closed 8 years ago
Console doesn't display NaN or Infinity
Categories
(DevTools :: Shared Components, defect, P2)
DevTools
Shared Components
Tracking
(firefox52 fixed)
RESOLVED
FIXED
Firefox 52
Tracking | Status | |
---|---|---|
firefox52 | --- | fixed |
People
(Reporter: Dolske, Assigned: nchevobbe)
References
Details
Attachments
(2 files)
When a console command's return value is NaN or Infinity, nothing is displayed. It should show "NaN" or "Infinity". (As "123" is shown in the screenshot)
Comment 1•8 years ago
|
||
Thanks for filing. This looks like it's probably an issue with the new Reps system, which are the lower level components which render the values in both the new web console and debugger.
Blocks: enable-new-console
Component: Developer Tools: Console → Developer Tools: Shared Components
Priority: -- → P2
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → chevobbe.nicolas
Comment hidden (mozreview-request) |
Assignee | ||
Comment 3•8 years ago
|
||
Comment 4•8 years ago
|
||
mozreview-review |
Comment on attachment 8801475 [details]
Bug 1309749 - Add reps for NaN and Infinity. ;
https://reviewboard.mozilla.org/r/86232/#review85572
::: devtools/client/shared/components/reps/nan.js:25
(Diff revision 1)
> + const NaNRep = React.createClass({
> + displayName: "NaN",
> +
> + render: function () {
> + return (
> + span({className: "objectBox objectBox-nan"},
I am not seeing objectBox-nan class defined. Did you want to use objectBox-number?
Honza
Comment 5•8 years ago
|
||
mozreview-review |
Comment on attachment 8801475 [details]
Bug 1309749 - Add reps for NaN and Infinity. ;
https://reviewboard.mozilla.org/r/86232/#review85574
Thanks for working on this!
Just one inline comment.
Honza
Attachment #8801475 -
Flags: review?(odvarko)
Assignee | ||
Comment 6•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8801475 [details]
Bug 1309749 - Add reps for NaN and Infinity. ;
https://reviewboard.mozilla.org/r/86232/#review85572
> I am not seeing objectBox-nan class defined. Did you want to use objectBox-number?
>
> Honza
No I don't (and it would be confusing I guess :) ). I added it here in case we'd want to style this in a specific way, in the future, without having to modify the JS.
I can remove it if it sounds better for you, since it doesn't do anything
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 9•8 years ago
|
||
mozreview-review |
Comment on attachment 8801475 [details]
Bug 1309749 - Add reps for NaN and Infinity. ;
https://reviewboard.mozilla.org/r/86232/#review85800
> No I don't (and it would be confusing I guess :) ). I added it here in case
> we'd want to style this in a specific way, in the future, without having to
> modify the JS.
OK, I see
> I can remove it if it sounds better for you, since it doesn't do anything
Keep it, I agree that it can be useful.
Thanks!
Honza
Attachment #8801475 -
Flags: review?(odvarko) → review+
Comment hidden (mozreview-request) |
Comment 11•8 years ago
|
||
Pushed by chevobbe.nicolas@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/52ae05c7eea3
Add reps for NaN and Infinity. r=Honza;
Comment 12•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 52
Comment 13•8 years ago
|
||
I have reproduced this bug with Nightly 52.0a1 (2016-10-12) (64-bit)on Windows 7, 64 Bit !
This bug's fix is verified with latest Nightly
Build ID 20161102030205
User Agent Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0
[bugday-20161102]
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•