Bug 156867 - Web Inspector: Debugger statement gets a space after it when pretty printed
Summary: Web Inspector: Debugger statement gets a space after it when pretty printed
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Local Build
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-04-21 14:12 PDT by Timothy Hatcher
Modified: 2016-04-21 15:24 PDT (History)
8 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (6.67 KB, patch)
2016-04-21 14:25 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

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