Bug 156867

Summary: Web Inspector: Debugger statement gets a space after it when pretty printed
Product: WebKit Reporter: Timothy Hatcher <timothy>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, commit-queue, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix none

Description Timothy Hatcher 2016-04-21 14:12:34 PDT
Pretty print:

navigator.geolocation.getCurrentPosition(function(position){ console.log(position); debugger;}, function(error){ console.log(error); debugger; });

It will format as:

navigator.geolocation.getCurrentPosition(function(position) {
    console.log(position);
    debugger ;
}, function(error) {
    console.log(error);
    debugger ;
});
Comment 1 Radar WebKit Bug Importer 2016-04-21 14:12:56 PDT
<rdar://problem/25862308>
Comment 2 Joseph Pecoraro 2016-04-21 14:25:46 PDT
Created attachment 276961 [details]
[PATCH] Proposed Fix
Comment 3 Geoffrey Garen 2016-04-21 14:33:36 PDT
Comment on attachment 276961 [details]
[PATCH] Proposed Fix

r=me
Comment 4 WebKit Commit Bot 2016-04-21 15:23:57 PDT
Comment on attachment 276961 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 276961

Committed r199838: <http://trac.webkit.org/changeset/199838>
Comment 5 WebKit Commit Bot 2016-04-21 15:24:02 PDT
All reviewed patches have been landed.  Closing bug.