(kind: XmlError["kind"], message: string)
| 2453 | // JavaScriptCore gives every Error its own source `line` and `column`, which |
| 2454 | // would pass for an XML position, so errors without one set both to undefined |
| 2455 | const positionless = (kind: XmlError["kind"], message: string) => |
| 2456 | new XmlError({ kind, message, line: undefined, column: undefined }) |
| 2457 | |
| 2458 | const invalidEvent = (message: string) => positionless("InvalidEvent", message) |
| 2459 |
no outgoing calls
no test coverage detected