UNPKG

yaml-unist-parser

Version:

A YAML parser that produces output compatible with unist

8 lines (7 loc) 222 B
export function createError(message, source, position) { const error = new SyntaxError(message); error.name = "YAMLSyntaxError"; error.source = source; error.position = position; return error; }