Bug 140864

Summary: Web Inspector: Change $1, $2, $3, $4 to be about previous result in the REPL, not DOM nodes
Product: WebKit Reporter: Timothy Hatcher <timothy>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: graouts, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Description Timothy Hatcher 2015-01-25 10:00:45 PST
Lets change these weird things since no one in my unscientific poll (https://twitter.com/xeenon/status/559388400864591872) uses them.

We should assign previous values a number starting with $1 ($0 will still be the current selected DOM node). Anything not null or undefined (or 0?) should get assigned. If the value (strict equal) has a $n referencing it already, don't make a new one and reuse the previous $n. The $n should be shown to the user in the console for quick at-a-glance reference when typing new expressions.
Comment 1 Radar WebKit Bug Importer 2015-01-25 10:01:21 PST
<rdar://problem/19592944>
Comment 2 Joseph Pecoraro 2015-05-05 21:07:46 PDT
Oop, we did this already. Bug 142061.

*** This bug has been marked as a duplicate of bug 142061 ***