You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function*foo(){varindex=0;while(index<=2)// при достижении 2, done в yield станет true, а value undefined;yieldindex++;}variterator=foo();console.log(iterator.next());// { value:0, done:false }console.log(iterator.next());// { value:1, done:false }console.log(iterator.next());// { value:2, done:false }console.log(iterator.next());// { value:undefined, done:true }
Led to exception 'metajs.js:155 Uncaught TypeError: Cannot set property 'value' of undefined' on row
'console.log(iterator.next()); // { value:1, done:false }'
Browser: Chrome 53.0.2785.116 (64-bit)
The text was updated successfully, but these errors were encountered:
Following code:
Led to exception 'metajs.js:155 Uncaught TypeError: Cannot set property 'value' of undefined' on row
'console.log(iterator.next()); // { value:1, done:false }'
Browser: Chrome 53.0.2785.116 (64-bit)
The text was updated successfully, but these errors were encountered: