This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Description
See TODO in test/cli/preserve-breaks.test.js.
Expected output of breakpoints after restart:
#0 examples/three-lines.js:2
#0 examples/three-lines.js:3
Actual output (still showing the regex for matching the filename that should've been resolved):
#0 .*//path/to/node-inspect/examples/three-lines.js$:2
#1 .*//path/to/node-inspect/examples/three-lines.js$:3
These "fake filenames" are generated when setting a breakpoint in a file that has been loaded yet:
// inspect_repl.js
if (!bp.location) { // Fake it for now.
Object.assign(bp, {
actualLocation: {
scriptUrl: `.*/${script}$`,
lineNumber: line - 1,
},
});