<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - REGRESSION(r192436): Inspector Hanging under tryParseDestructuringPatternExpression"
href="https://bugs.webkit.org/show_bug.cgi?id=151324#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - REGRESSION(r192436): Inspector Hanging under tryParseDestructuringPatternExpression"
href="https://bugs.webkit.org/show_bug.cgi?id=151324">bug 151324</a>
from <span class="vcard"><a class="email" href="mailto:caitpotter88@gmail.com" title="Caitlin Potter <caitpotter88@gmail.com>"> <span class="fn">Caitlin Potter</span></a>
</span></b>
<pre>The cause is pretty straight forward, when parsing the destructuring pattern, there's a SavePoint for each property in the object literal, when parsed in an expression context, and this happens for every ObjectLiteral/ArrayLiteral parsed in an AssignmentExpression context.
A fix that may work is re-organizing it to parse as an ObjectLiteral/ArrayLiteral first, and switch to destructuring mode only if followed by a "=".</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>