(v: RegExp)
| 565 | |
| 566 | // a subclass says what it likes of its source and flags, or throws |
| 567 | const regexFacts = (v: RegExp): Facts | undefined => |
| 568 | Object.getPrototypeOf(v) === RegExp.prototype ? |
| 569 | patternFacts(v.source, v.flags) |
| 570 | : undefined |
| 571 | |
| 572 | // a string's, whose source is what's written but for a / it escapes, which |
| 573 | // isn't the source of a RegExp writing that escape |
no test coverage detected