Bug 140864 - Web Inspector: Change $1, $2, $3, $4 to be about previous result in the REPL, not DOM nodes
Summary: Web Inspector: Change $1, $2, $3, $4 to be about previous result in the REPL,...
Status: RESOLVED DUPLICATE of bug 142061
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-01-25 10:00 PST by Timothy Hatcher
Modified: 2015-05-05 21:07 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***