()
| 48 | const kEvalTag = '[eval]'; |
| 49 | |
| 50 | function tryGetCwd() { |
| 51 | try { |
| 52 | return process.cwd(); |
| 53 | } catch { |
| 54 | // getcwd(3) can fail if the current working directory has been deleted. |
| 55 | // Fall back to the directory name of the (absolute) executable path. |
| 56 | // It's not really correct but what are the alternatives? |
| 57 | return path.dirname(process.execPath); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | let evalIndex = 0; |
| 62 | function getEvalModuleUrl() { |
no outgoing calls
no test coverage detected
searching dependent graphs…