Bug 142428

Summary: Web Inspector: JS Pretty Printing: "case" or "default" outside of switch causes unbalanced indentation
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, graouts, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix none

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.