Closed Bug 1389161 Opened 7 years ago Closed 7 years ago

console.table([{ column1: 0, column2: 1 }]) output is wrong

Categories

(DevTools :: Console, defect, P1)

defect

Tracking

(firefox57 fixed)

VERIFIED FIXED
Firefox 57
Iteration:
57.1 - Aug 15
Tracking Status
firefox57 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

(Whiteboard: [reserve-console-html])

Attachments

(1 file)

Steps to reproduce: 
1. Open the console
2. Evaluate `console.table([{ column1: 0, column2: 1 }])`

Expected results:

+-------+---------+---------+
| index | column1 | column2 |
+-------+---------+---------+
|     0 |       0 |       1 |
+-------+---------+---------+


Actual results: 

+-------+-------------+---------+
| index |   column1   | column2 |
+-------+-------------+---------+
|     0 |    Object{} |       1 |
+-------+-------------+---------+

i.e. `Object{}` should be `0`
Priority: -- → P2
Whiteboard: [console-html][triage]
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Priority: P2 → P1
Comment on attachment 8896244 [details]
Bug 1389161 - Fix console.table for nested object with falsy values; .

https://reviewboard.mozilla.org/r/167532/#review172720

Works for me!

Honza
Attachment #8896244 - Flags: review?(odvarko) → review+
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b8a95a9bde76
Fix console.table for nested object with falsy values; r=Honza.
https://hg.mozilla.org/mozilla-central/rev/b8a95a9bde76
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
Iteration: --- → 57.1 - Aug 15
Flags: qe-verify?
Whiteboard: [console-html][triage] → [reserve-console-html]
I have successfully reproduced this bug with Nightly 57.0a1 (2017-08-10) (32-bit) on windows 10(32bit)

this bug is verified fix with  latest nightly 57.0a1 (2017-08-15) (32-bit)

Build ID: 20170815100349
Mozilla/5.0 (Windows NT 10.0; rv:57.0) Gecko/20100101 Firefox/57.0
QA Whiteboard: [bugday-20170816]
I have reproduced this bug with nightly 57.0a1 (2017-08-10) on Linux Mint (64 Bit).

The bug's fix is now verified on Latest Nightly 57.0a1

Build ID 	20170815100349
User Agent 	Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0

[Bugday-20170816]
Status: RESOLVED → VERIFIED
Flags: qe-verify?
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: