Open Bug 1164213 Opened 11 years ago Updated 3 years ago

Reimplement the Closure Inspector (aka ".%")

Categories

(DevTools :: Console, enhancement, P3)

enhancement

Tracking

(Not tracked)

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
Component: Untriaged → Developer Tools: Console
Whiteboard: [firebug-gap]
Product: Firefox → DevTools
Does it still occur? Thanks
Flags: needinfo?(fayolle-florent)
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)
OK, merci Florent! Nicolas, can you help with that? Thanks
Flags: needinfo?(nchevobbe)
Version: 41 Branch → unspecified
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
Type: defect → enhancement
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.