WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 156178
134003
Web Inspector: JS PrettyPrinting issues with ternary statement
https://bugs.webkit.org/show_bug.cgi?id=134003
Summary
Web Inspector: JS PrettyPrinting issues with ternary statement
Joseph Pecoraro
Reported
2014-06-17 16:34:14 PDT
Ternary statement in a var declaration or global scope does not pretty print as expected. There should be a space before the ":" but there is not: TEST: var x=true?a:b; // wrong var x=(true?a:b); x=true?a:b; function() {var x=true?a:b;} // wrong OUTPUTS: var x = true ? a: b; // wrong var x = (true ? a : b); x = true ? a : b; function() { var x = true ? a: b; } // wrong NOTES: - The first wrong case the previous is "block", a.k.a. global scope here. - The second wrong case the pervious is "vardef". - I would have expected both of these to have previous be vardef.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2014-06-17 16:35:19 PDT
<
rdar://problem/17351457
>
Joseph Pecoraro
Comment 2
2016-04-04 14:48:47 PDT
This will be fixed by
Bug 156178
. *** This bug has been marked as a duplicate of
bug 156178
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug