@atlaskit/editor-wikimarkup-transformer
Version:
Wiki markup transformer for JIRA and Confluence
17 lines (16 loc) • 365 B
JavaScript
export function error(message, _input, line, column) {
throw createError({
message,
line,
column
});
}
// Ignored via go/ees005
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function createError(props) {
const err = Object.create(SyntaxError.prototype);
Object.assign(err, props, {
name: 'SyntaxError'
});
return err;
}