Closed Bug 1270636 Opened 9 years ago Closed 8 years ago

console.time() / timeEnd() should provide a default label if no arguments are passed in

Categories

(DevTools :: Console, defect, P3)

46 Branch
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1357473

People

(Reporter: bgrins, Unassigned)

Details

(Whiteboard: [console-spec])

From: https://github.com/whatwg/console/issues/54#issuecomment-216547264 Let's make time and timeEnd use `optional DOMString label = "default"` so that calling console.time(); console.timeEnd(); will be equivalent to calling console.time('default'); console.timeEnd('default');
Also console.time(undefined) console.timeEnd(undefined) should use the default param. Basically all of the following should do the same thing: - console.time() - console.time(undefined) - console.time("default")
This will be handled in Bug 1357473
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.