mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: use optional catch binding (#39232)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user