Bug 207180

Summary: Web Inspector: REGRESSION(r248287): Console: function objects saved to a $n will be invoked instead of just referenced when evaluating in the Console
Product: WebKit Reporter: Devin Rousso <hi>
Component: Web InspectorAssignee: Devin Rousso <hi>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ews-watchlist, hi, inspector-bugzilla-changes, joepeck, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: All   
OS: All   
Bug Depends on: 195834    
Bug Blocks:    
Attachments:
Description Flags
Patch none

Devin Rousso
Reported 2020-02-03 19:39:32 PST
# STEPS TO REPRODUCE: 1. inspect any page 2. evaluate `function foo() { return "test"; }` in the Console 3. evaluate `foo` => should see `$1` 4. evaluate `$1` => `"test"` is logged instead of `function foo() { return "test"; }`
Attachments
Patch (6.72 KB, patch)
2020-02-03 19:44 PST, Devin Rousso
no flags
Devin Rousso
Comment 1 2020-02-03 19:39:50 PST
Devin Rousso
Comment 2 2020-02-03 19:44:03 PST
Joseph Pecoraro
Comment 3 2020-02-03 22:23:20 PST
Comment on attachment 389620 [details] Patch Nice. r=me
WebKit Commit Bot
Comment 4 2020-02-04 07:59:48 PST
Comment on attachment 389620 [details] Patch Clearing flags on attachment: 389620 Committed r255675: <https://trac.webkit.org/changeset/255675>
WebKit Commit Bot
Comment 5 2020-02-04 07:59:50 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.