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
All code that currently builds chains of promises would be way more concise using co. Let's rewrite it!
Example of rewriting test code:
it('zips a package',()=>withTempDir((tmpDir)=>co(function*(){letzipFile=newZipFile();let{extensionPath}=yieldadapter.buildMinimalExt(tmpDir);assert.match(extensionPath,/minimal_extension-1\.0\.xpi$/);yieldzipFile.open(extensionPath);letfileNames=[];letresult=yieldzipFile.readEach((entry)=>fileNames.push(entry.fileName));assert.deepEqual(fileNames,['manifest.json']);returnresult;})));
The text was updated successfully, but these errors were encountered:
I'm not totally sure if this is possible in babel since we'd like to support older system nodes and also running without a --harmony flag. Some things to dig into:
All code that currently builds chains of promises would be way more concise using co. Let's rewrite it!
Example of rewriting test code:
The text was updated successfully, but these errors were encountered: