(code: string, message: string)
| 26 | const NO_SUCH_ELEMENT = 'no such element' |
| 27 | |
| 28 | function botError(code: string, message: string): Error { |
| 29 | const err = new Error(message) |
| 30 | ;(err as unknown as Record<string, unknown>)['code'] = code |
| 31 | return err |
| 32 | } |
| 33 | |
| 34 | function cssEscapeId(s: string): string { |
| 35 | return s.replace(/[\s'"\\#.:;,!?+<>=~*^$|%&@`{}\-/\[\]()]/g, (c) => '\\' + c) |
no outgoing calls
no test coverage detected