Open
Bug 1164213
Opened 11 years ago
Updated 3 years ago
Reimplement the Closure Inspector (aka ".%")
Categories
(DevTools :: Console, enhancement, P3)
DevTools
Console
Tracking
(Not tracked)
NEW
People
(Reporter: fayolle-florent, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [firebug-gap])
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
Build ID: 20150508094354
Steps to reproduce:
See http://getfirebug.com/wiki/index.php/Closure_Inspector
The Closure Inspector feature in Firebug proposes a special syntax: ".%" to access a closure variable. Obviously, it is not standard, but it is quite convenient.
Florent
| Reporter | ||
Updated•11 years ago
|
Updated•8 years ago
|
Product: Firefox → DevTools
| Reporter | ||
Comment 2•7 years ago
|
||
Yep :
>>> function foo() {
const a = 42;
return function () {
return a;
}
}
>>> foo().%a
SyntaxError: missing name after . operator[En savoir plus]
Should rather display:
>>> foo().%a
42
Florent
Flags: needinfo?(fayolle-florent)
Comment 3•7 years ago
|
||
OK, merci Florent!
Nicolas, can you help with that? Thanks
Flags: needinfo?(nchevobbe)
Updated•7 years ago
|
Version: 41 Branch → unspecified
Comment 4•7 years ago
|
||
Not sure we'd implement this with this non-standard syntax.
We already have Bug 1443848 to have a `<closure>` node in the ObjectInspector.
We might offer something in the autocomplete popup to get access to the closure.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(nchevobbe)
Priority: -- → P3
Updated•7 years ago
|
Type: defect → enhancement
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•