refactor: use optional catch binding (#39232)
This commit is contained in:
parent
8dea783805
commit
c9bae5da8e
11 changed files with 17 additions and 17 deletions
|
@ -32,7 +32,7 @@ describe('debugger module', () => {
|
|||
it('fails when protocol version is not supported', done => {
|
||||
try {
|
||||
w.webContents.debugger.attach('2.0');
|
||||
} catch (err) {
|
||||
} catch {
|
||||
expect(w.webContents.debugger.isAttached()).to.be.false();
|
||||
done();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue