We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
node inspect
1 parent c97cc47 commit e0aec8cCopy full SHA for e0aec8c
1 file changed
lib/internal/debugger/inspect.js
@@ -737,9 +737,14 @@ class ProbeInspectorSession {
737
for (const { location, probeIndices } of uniqueLocations.values()) {
738
// TODO(joyeecheung): Normalize relative probe paths and avoid suffix matches that can
739
// bind unrelated loaded scripts with the same basename.
740
+ // On Windows, normalize backslashes to forward slashes so the regex matches
741
+ // V8 script URLs which always use forward slashes.
742
+ const normalizedFile = process.platform === 'win32' ?
743
+ SideEffectFreeRegExpPrototypeSymbolReplace(/\\/g, location.file, '/') :
744
+ location.file;
745
const escapedPath = SideEffectFreeRegExpPrototypeSymbolReplace(
746
/([/\\.?*()^${}|[\]])/g,
- location.file,
747
+ normalizedFile,
748
'\\$1',
749
);
750
const params = {
0 commit comments