Object with numerical properties logged as Array

NEW
Unassigned

Status

P3
minor
a year ago
2 months ago

People

(Reporter: me, Unassigned)

Tracking

53 Branch

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

a year ago
Firefox:

> x = {"2": 1};
< Object [ <2 empty slots>, 1 ]

Chrome:

> x = {"2": 1};
< Object {2: 1}

While technically, the logged Array is not incorrect, I think what Chrome does makes a lot more sense in this case.
Priority: -- → P3

Updated

2 months ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.