@@ -13,7 +13,8 @@ process._rawDebug('Waiting until a signal enables the inspector...');
13
13
let waiting = setInterval(waitUntilDebugged, 50);
14
14
15
15
function waitUntilDebugged() {
16
- if (!process.binding('inspector').isEnabled()) return;
16
+ const { internalBinding } = require('internal/test/binding');
17
+ if (!internalBinding('inspector').isEnabled()) return;
17
18
clearInterval(waiting);
18
19
// At this point, even though the Inspector is enabled, the default async
19
20
// call stack depth is 0. We need a chance to call
@@ -36,7 +37,7 @@ function setupTimeoutWithBreak() {
36
37
37
38
async function waitForInitialSetup ( session ) {
38
39
console . error ( '[test]' , 'Waiting for initial setup' ) ;
39
- await session . waitForBreakOnLine ( 15 , '[eval]' ) ;
40
+ await session . waitForBreakOnLine ( 16 , '[eval]' ) ;
40
41
}
41
42
42
43
async function setupTimeoutForStackTrace ( session ) {
@@ -50,7 +51,7 @@ async function setupTimeoutForStackTrace(session) {
50
51
51
52
async function checkAsyncStackTrace ( session ) {
52
53
console . error ( '[test]' , 'Verify basic properties of asyncStackTrace' ) ;
53
- const paused = await session . waitForBreakOnLine ( 22 , '[eval]' ) ;
54
+ const paused = await session . waitForBreakOnLine ( 23 , '[eval]' ) ;
54
55
assert ( paused . params . asyncStackTrace ,
55
56
`${ Object . keys ( paused . params ) } contains "asyncStackTrace" property` ) ;
56
57
assert ( paused . params . asyncStackTrace . description , 'Timeout' ) ;
0 commit comments