MCPcopy Create free account
hub / github.com/TruthHun/BookStack / strictFail

Function strictFail

static/word2md/mammoth.browser.js:26614–26621  ·  view source on GitHub ↗
(parser, message)

Source from the content-addressed store, hash-verified

26612 }
26613
26614 function strictFail (parser, message) {
26615 if (typeof parser !== 'object' || !(parser instanceof SAXParser)) {
26616 throw new Error('bad call to strictFail')
26617 }
26618 if (parser.strict) {
26619 error(parser, message)
26620 }
26621 }
26622
26623 function newTag (parser) {
26624 if (!parser.strict) parser.tagName = parser.tagName[parser.looseCase]()

Callers 7

endFunction · 0.70
attribFunction · 0.70
openTagFunction · 0.70
closeTagFunction · 0.70
parseEntityFunction · 0.70
beginWhiteSpaceFunction · 0.70
writeFunction · 0.70

Calls 1

errorFunction · 0.70

Tested by

no test coverage detected