Add new baselines

This commit is contained in:
Andrew Branch 2019-04-17 14:50:45 -07:00
parent 4c73b2e7bd
commit 06c8506f96
No known key found for this signature in database
GPG Key ID: 22CCA4B120C427D2
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,11 @@
// ==ORIGINAL==
function /*[#|*/f/*|]*/(): Promise<void>{
return fetch('https://typescriptlang.org').then(([result]) => { console.log(result) });
}
// ==ASYNC FUNCTION::Convert to async function==
async function f(): Promise<void>{
let [result] = await fetch('https://typescriptlang.org');
console.log(result);
}

View File

@ -0,0 +1,11 @@
// ==ORIGINAL==
function /*[#|*/f/*|]*/(): Promise<void>{
return fetch('https://typescriptlang.org').then(({ result }) => { console.log(result) });
}
// ==ASYNC FUNCTION::Convert to async function==
async function f(): Promise<void>{
let { result } = await fetch('https://typescriptlang.org');
console.log(result);
}