| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3769632 commit 3571e13
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,7 @@ | |||
| 5 | 5 | const common = require('../common'); | |
| 6 | 6 | common.skipIfInspectorDisabled(); | |
| 7 | 7 | ||
| 8 | - const { strictEqual } = require('assert'); | ||
| 8 | + const { ifError, strictEqual } = require('assert'); | ||
| 9 | 9 | const { createContext, runInNewContext } = require('vm'); | |
| 10 | 10 | const { Session } = require('inspector'); | |
| 11 | 11 | ||
@@ -22,7 +22,7 @@ async function testContextCreatedAndDestroyed() { | |||
| 22 | 22 | const mainContextPromise = | |
| 23 | 23 | notificationPromise('Runtime.executionContextCreated'); | |
| 24 | 24 | ||
| 25 | - session.post('Runtime.enable'); | ||
| 25 | + session.post('Runtime.enable', assert.ifError); | ||
| 26 | 26 | const contextCreated = await mainContextPromise; | |
| 27 | 27 | const { name, origin, auxData } = contextCreated.params.context; | |
| 28 | 28 | if (common.isSunOS || common.isWindows) { | |
@@ -148,7 +148,7 @@ async function testContextCreatedAndDestroyed() { | |||
| 148 | 148 | ||
| 149 | 149 | async function testBreakpointHit() { | |
| 150 | 150 | console.log('Testing breakpoint is hit in a new context'); | |
| 151 | - session.post('Debugger.enable'); | ||
| 151 | + session.post('Debugger.enable', assert.ifError); | ||
| 152 | 152 | ||
| 153 | 153 | const pausedPromise = notificationPromise('Debugger.paused'); | |
| 154 | 154 | runInNewContext('debugger', {}); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments