<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:bburg@apple.com" title="Brian Burg <bburg@apple.com>"> <span class="fn">Brian Burg</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Web Inspector: Show upcoming values of non-native iterators"
href="https://bugs.webkit.org/show_bug.cgi?id=152682">bug 152682</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>utatane.tea@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Web Inspector: Show upcoming values of non-native iterators"
href="https://bugs.webkit.org/show_bug.cgi?id=152682#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Web Inspector: Show upcoming values of non-native iterators"
href="https://bugs.webkit.org/show_bug.cgi?id=152682">bug 152682</a>
from <span class="vcard"><a class="email" href="mailto:bburg@apple.com" title="Brian Burg <bburg@apple.com>"> <span class="fn">Brian Burg</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=152682#c3">comment #3</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=152682#c2">comment #2</a>)
> > I think this could backfire if the iterators are not side effect-free. We
> > can always do this for native iterators because we know how they are
> > implemented.
>
> Correct!
>
> > Perhaps we could hide it behind the getter "eyeball button".
>
> Even this might be difficult. We may need to have some way to duplicate an
> iterator, as peeking forward will actually advance the iterator and we can't
> advance the actual iterator without then breaking execution.
>
> --
>
> An entirely alternative solution would be allowing developers to provide
> their own previews for their own objects. See:
> <<a href="https://webkit.org/b/142656">https://webkit.org/b/142656</a>> Web Inspector: Expose a way for developer
> provided object previews</span >
If they use iterators, why are they going to have any less trouble duplicating the iterator state than we are?
cc: Yusuke, what do you recommend doing to implement peeking at next iterator values?</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>