chore: enforce naming of errors in catch blocks (#5763)

This commit is contained in:
Jack Franklin
2020-04-28 14:16:28 +01:00
committed by GitHub
parent 3bf9bd199d
commit 1ccfbcb684
35 changed files with 191 additions and 186 deletions

View File

@@ -64,7 +64,7 @@ describeChromeOnly('Tracing', function() {
await page.tracing.start({path: outputFile});
const newPage = await browser.newPage();
let error = null;
await newPage.tracing.start({path: outputFile}).catch(e => error = e);
await newPage.tracing.start({path: outputFile}).catch(error_ => error = error_);
await newPage.close();
expect(error).toBeTruthy();
await page.tracing.stop();