Closed
Bug 1165639
Opened 9 years ago
Closed 6 years ago
Map string key displayed as number in web console
Categories
(DevTools :: Console, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: daniel.nr01, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0 Build ID: 20150513030209 Steps to reproduce: Run the following code in the scratchpad/web console let m = new Map(); m.set(5, 5); m.set('5', 5); for (let [k, v] of m) { console.log(k); } Actual results: The console logs are grouped, and the keys are highlighted as numbers (green) in the console. (If they come in the other order, they also get grouped but highlighted as strings.) Expected results: The logs should not be grouped, and they should be highlighted different from each other. The issue does not occur if one simply runs console.log(5); console.log('5');
Status: UNCONFIRMED → NEW
Component: Developer Tools → Developer Tools: Console
Ever confirmed: true
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•6 years ago
|
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•