Open
Bug 1695143
Opened 4 years ago
Updated 2 years ago
Match Arguments objects to the argument names in the scopes panel
Categories
(DevTools :: Shared Components, enhancement, P3)
DevTools
Shared Components
Tracking
(Not tracked)
NEW
People
(Reporter: nchevobbe, Unassigned)
Details
(See https://github.com/firefox-devtools/devtools-core/issues/598)
Steps to reproduce
- Open the console
- Evaluate:
(function (paramA, paramB, paramC) {
console.dir(arguments)
})("a","b","c")
Actual results
The following object is rendered:
▼ Arguments
| 0: "a"
| 1: "b"
| 2: "c"
Expected results
It would be nice if we could also print the parameter name around the index, for example
▼ Arguments
| 0 (paramA): "a"
| 1 (paramB): "b"
| 2 (paramC): "c"
We'd need to handle rest parameter so
(function (paramA, ...rest) {
console.dir(arguments)
})("a","b","c")
would print something like
▼ Arguments
| 0 (paramA): "a"
| 1: "b"
| 2: "c"
You need to log in
before you can comment on or make changes to this bug.
Description
•