MCPcopy
hub / github.com/asm-js/validator / failWithLocation

Function failWithLocation

lib/validate.js:129–136  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

127 };
128
129 function failWithLocation(e) {
130 if (e instanceof match.MatchError) {
131 var loc = e && e.actual ? e.actual.loc : null;
132 self.fail("invalid " + desc, loc);
133 } else {
134 throw e;
135 }
136 }
137};
138
139// (string) -> Report

Callers 1

validate.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected