Bug 117615 - Web Inspector: JS PrettyPrinting Should have space between "do" and "{"
Summary: Web Inspector: JS PrettyPrinting Should have space between "do" and "{"
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
Depends on:
Reported: 2013-06-13 16:16 PDT by Joseph Pecoraro
Modified: 2013-06-13 16:54 PDT (History)
4 users (show)

See Also:

[PATCH] Proposed Fix (1.21 KB, patch)
2013-06-13 16:18 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 Joseph Pecoraro 2013-06-13 16:16:43 PDT
JavaScript pretty printing should have a space between "do" and "{".

TEST: do{"x"}while(0);

Saw this on some code in the wild.
Comment 1 Joseph Pecoraro 2013-06-13 16:18:20 PDT
Created attachment 204650 [details]
[PATCH] Proposed Fix

Easy fix. Add a space after "do" like we do for "else".
Comment 2 WebKit Commit Bot 2013-06-13 16:54:35 PDT
Comment on attachment 204650 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 204650

Committed r151574: <http://trac.webkit.org/changeset/151574>
Comment 3 WebKit Commit Bot 2013-06-13 16:54:37 PDT
All reviewed patches have been landed.  Closing bug.