RESOLVED DUPLICATE of bug 9337787038
Web Inspector: $_ for last calculated result
https://bugs.webkit.org/show_bug.cgi?id=87038
Summary Web Inspector: $_ for last calculated result
homakov
Reported 2012-05-21 12:49:15 PDT
It would be nice to have smth like __ or $_ variable available in console - it is _ in Ruby. It will save some time and also suits since we already have $0-4 for latest DOM elements. Also implementation is only 1 LOC.
Attachments
Pavel Feldman
Comment 1 2012-05-21 13:37:06 PDT
Sounds good to me. Do you have a patch?
homakov
Comment 2 2012-05-21 13:42:11 PDT
not yet. Just need more "+1" - and it will be committed!
Pavel Feldman
Comment 3 2012-05-21 13:50:22 PDT
(In reply to comment #2) > not yet. Just need more "+1" - and it will be committed! You don't need more "+1", feel free to attach the patch and I'll review it. Note that this change would need a test. See LayoutTests/inspector/console/command-line-api.html and other command-line tests for more info.
homakov
Comment 4 2012-05-25 01:09:09 PDT
(In reply to comment #3) > (In reply to comment #2) > > not yet. Just need more "+1" - and it will be committed! > > You don't need more "+1", feel free to attach the patch and I'll review it. Note that this change would need a test. See LayoutTests/inspector/console/command-line-api.html and other command-line tests for more info. Great. Just having some issues with contexts - learning how webinspector works with $0-4 and doesn't pollute current window JS namespace.
Paul Irish
Comment 5 2012-08-07 11:22:36 PDT
*** This bug has been marked as a duplicate of bug 93377 ***
Note You need to log in before you can comment on or make changes to this bug.