Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Web Inspector: Debugger statement gets a space after it when pretty p…
…rinted https://bugs.webkit.org/show_bug.cgi?id=156867 <rdar://problem/25862308> Patch by Joseph Pecoraro <pecoraro@apple.com> on 2016-04-21 Reviewed by Geoffrey Garen. Source/WebInspectorUI: * Tools/Formatting/index.html: * UserInterface/Workers/Formatter/EsprimaFormatter.js: (EsprimaFormatter.prototype._handleTokenAtNode): Handle the unhandled DebuggerStatement node type. LayoutTests: * inspector/formatting/formatting-javascript-expected.txt: * inspector/formatting/formatting-javascript.html: * inspector/formatting/resources/javascript-tests/other-statements-expected.js: Renamed from LayoutTests/inspector/formatting/resources/javascript-tests/throw-statement-expected.js. * inspector/formatting/resources/javascript-tests/other-statements.js: Renamed from LayoutTests/inspector/formatting/resources/javascript-tests/throw-statement.js. Canonical link: https://commits.webkit.org/174973@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@199838 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
39 additions
and 6 deletions.
- +13 −0 LayoutTests/ChangeLog
- +3 −3 LayoutTests/inspector/formatting/formatting-javascript-expected.txt
- +1 −1 LayoutTests/inspector/formatting/formatting-javascript.html
- +3 −0 ...ormatting/resources/javascript-tests/{throw-statement-expected.js → other-statements-expected.js}
- +3 −0 ...tTests/inspector/formatting/resources/javascript-tests/{throw-statement.js → other-statements.js}
- +13 −0 Source/WebInspectorUI/ChangeLog
- +1 −1 Source/WebInspectorUI/Tools/Formatting/index.html
- +2 −1 Source/WebInspectorUI/UserInterface/Workers/Formatter/EsprimaFormatter.js
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -7,3 +7,6 @@ throw new x; | ||
throw { | ||
a: 1 | ||
}; | ||
|
||
debugger | ||
debugger; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -5,3 +5,6 @@ throw(1); | ||
throw"x"; | ||
throw new x; | ||
throw {a:1}; | ||
|
||
debugger | ||
debugger; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters