(path5, originalPath, doThrow)
| 64445 | pattern, |
| 64446 | negative, |
| 64447 | regex |
| 64448 | ); |
| 64449 | }; |
| 64450 | var throwError = (message, Ctor) => { |
| 64451 | throw new Ctor(message); |
| 64452 | }; |
| 64453 | var checkPath = (path5, originalPath, doThrow) => { |
| 64454 | if (!isString2(path5)) { |
| 64455 | return doThrow( |
| 64456 | `path must be a string, but got \`${originalPath}\``, |
| 64457 | TypeError |
| 64458 | ); |
| 64459 | } |
| 64460 | if (!path5) { |
| 64461 | return doThrow(`path must not be empty`, TypeError); |
| 64462 | } |
| 64463 | if (checkPath.isNotRelative(path5)) { |
| 64464 | const r3 = "`path.relative()`d"; |
| 64465 | return doThrow( |
| 64466 | `path should be a ${r3} string, but got "${originalPath}"`, |
| 64467 | RangeError |
| 64468 | ); |
no test coverage detected
searching dependent graphs…