MCPcopy Create free account
hub / github.com/Effect-TS/effect / positionless

Function positionless

packages/effect/src/encoding/Xml.ts:2455–2456  ·  view source on GitHub ↗
(kind: XmlError["kind"], message: string)

Source from the content-addressed store, hash-verified

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
2455const positionless = (kind: XmlError["kind"], message: string) =>
2456 new XmlError({ kind, message, line: undefined, column: undefined })
2457
2458const invalidEvent = (message: string) => positionless("InvalidEvent", message)
2459

Callers 2

growMethod · 0.85
invalidEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected