[Webkit-unassigned] [Bug 152682] Web Inspector: Show upcoming values of non-native iterators

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jan 10 05:17:25 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=152682

--- Comment #6 from Yusuke Suzuki <utatane.tea at gmail.com> ---
(In reply to comment #4)
> cc: Yusuke, what do you recommend doing to implement peeking at next
> iterator values?

I think cloning the user crafted iterator completely is impossible. For example,


function generateIterator() {
    var capturedValue = 0;
    var iterator = {
        [Symbol.iterator]() { return this; }
        next() {
            return { value: capturedValue++, done: false };
        }
    };
    return iterator;
}

In the above case, deeply cloning the given iterator object is not enough.
I'm +1 on console.previewSymbol :)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160110/07e33438/attachment.html>


More information about the webkit-unassigned mailing list