<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Web Inspector, regression: JS/JSON pretty-printing sporadically broken in STP8"
href="https://bugs.webkit.org/show_bug.cgi?id=159511#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Web Inspector, regression: JS/JSON pretty-printing sporadically broken in STP8"
href="https://bugs.webkit.org/show_bug.cgi?id=159511">bug 159511</a>
from <span class="vcard"><a class="email" href="mailto:joepeck@webkit.org" title="Joseph Pecoraro <joepeck@webkit.org>"> <span class="fn">Joseph Pecoraro</span></a>
</span></b>
<pre>The "application/json" content looks like:
{"e":"...","c":-1,...}/*""*/
Pretty Printing fails because:
• It is an invalid JavaScript program. (Esprima Parse error)
• JSON.parse fails. (The comment at the end makes it invalid)
I suppose instead of JSON.parse we could try '(' + str + ')' and chopping off some pieces. That is rather unfortunate.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>