File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,10 @@ if (!process.config.variables.node_use_amaro) common.skip('Requires Amaro');
77const { NodeInstance } = require ( '../common/inspector-helper.js' ) ;
88const fixtures = require ( '../common/fixtures' ) ;
99const assert = require ( 'assert' ) ;
10+ const { pathToFileURL } = require ( 'url' ) ;
1011
1112const scriptPath = fixtures . path ( 'typescript/ts/test-typescript.ts' ) ;
13+ const scriptURL = pathToFileURL ( scriptPath ) ;
1214
1315async function runTest ( ) {
1416 const child = new NodeInstance (
@@ -30,7 +32,7 @@ async function runTest() {
3032 const scriptParsed = await session . waitForNotification ( ( notification ) => {
3133 if ( notification . method !== 'Debugger.scriptParsed' ) return false ;
3234
33- return notification . params . url === scriptPath ;
35+ return notification . params . url === scriptPath || notification . params . url === scriptURL . href ;
3436 } ) ;
3537 // Verify that the script has a sourceURL, hinting that it is a generated source.
3638 assert ( scriptParsed . params . hasSourceURL || common . isInsideDirWithUnusualChars ) ;
You can’t perform that action at this time.
0 commit comments