Bug 142428 - Web Inspector: JS Pretty Printing: "case" or "default" outside of switch causes unbalanced indentation
Summary: Web Inspector: JS Pretty Printing: "case" or "default" outside of switch caus...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-03-06 20:11 PST by Joseph Pecoraro
Modified: 2015-03-06 22:11 PST (History)
8 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (4.20 KB, patch)
2015-03-06 20:13 PST, 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 Joseph Pecoraro 2015-03-06 20:11:37 PST
* SUMMARY
JS Pretty Printing: "case" or "default" outside of switch causes unbalanced indentation. It breaks indentation of the rest of the file.

* TEST
function(){this.default;this.other;}

* EXPECTED
function(){
    this.default;
    this.other;
}

* ACTUAL
function(){
    this.default;
        this.other;
    }
Comment 1 Radar WebKit Bug Importer 2015-03-06 20:12:09 PST
<rdar://problem/20081419>
Comment 2 Joseph Pecoraro 2015-03-06 20:13:22 PST
Created attachment 248136 [details]
[PATCH] Proposed Fix
Comment 3 WebKit Commit Bot 2015-03-06 22:11:03 PST
Comment on attachment 248136 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 248136

Committed r181205: <http://trac.webkit.org/changeset/181205>
Comment 4 WebKit Commit Bot 2015-03-06 22:11:08 PST
All reviewed patches have been landed.  Closing bug.