pub fn get_iterator(v: &Value) -> Result<Option<Value>, String>Expand description
GetIterator(proxy, sync) → the iterator object. Ok(None) → not a proxy.
Three cases, in the order GetIterator reaches them:
a user Symbol.iterator read THROUGH the get trap, called with the proxy
as this; an array target still holding the default, whose
Array.prototype[Symbol.iterator] is a live array iterator over the PROXY —
each step re-reads length and then Get(O, i) through the traps
(23.1.5.1), never has; and anything else (Map/Set/string/generator
target), which iterates as the target does.