Skip to main content

iterator_step_value

Function iterator_step_value 

Source
pub fn iterator_step_value(iterator: &Value) -> Result<Option<Value>, String>
Expand description

IteratorStepValue (7.4.8): call next, refuse a result that is not an object, then read done and — unless done — value. Without the object check a next returning a primitive read done as undefined forever, so the loop never ended.