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
{{ message }}
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
function*getFiles(){leturls=[].slice.call(arguments);letresults=yieldurls.map(function(url){returnnewPromise((resolve,reject)=>{setTimeout(()=>{resolve("new value");},1000);});});results.forEach((val)=>{console.log(val)});}letiterator=getFiles("file1","file2","file3");//iterator is undefinedPromise.all(iterator.next().value).then(function(results){iterator.next(results);});
If I set debugger after I created an generator's iterator and place this variable into watch section (or just hover it with mouse pointer) I'll see that variable "iterator" has "undefined" value.
The text was updated successfully, but these errors were encountered:
Code looks ike this:
If I set debugger after I created an generator's iterator and place this variable into watch section (or just hover it with mouse pointer) I'll see that variable "iterator" has "undefined" value.
The text was updated successfully, but these errors were encountered: