()
| 45 | } |
| 46 | |
| 47 | async function testNoCrashWithExceptionInCallback() { |
| 48 | // There is a deliberate exception in the callback |
| 49 | const session = new inspector.Session(); |
| 50 | session.connect(); |
| 51 | const error = new Error('We expect this'); |
| 52 | console.log('Expecting warning to be emitted'); |
| 53 | const promise = new Promise(waitForWarningSkipAsyncStackTraces); |
| 54 | session.post('Console.enable', () => { throw error; }); |
| 55 | assert.strictEqual(await promise, error); |
| 56 | session.disconnect(); |
| 57 | } |
| 58 | |
| 59 | function testSampleDebugSession() { |
| 60 | let cur = 0; |
no test coverage detected
searching dependent graphs…