MCPcopy Index your code
hub / github.com/json-editor/json-editor / resetErrorsCount

Function resetErrorsCount

docs/scripts/ajv-validator.js:1606–1609  ·  view source on GitHub ↗
(gen, errsCount)

Source from the content-addressed store, hash-verified

1604 }
1605 exports.reportExtraError = reportExtraError;
1606 function resetErrorsCount(gen, errsCount) {
1607 gen.assign(names_1.default.errors, errsCount);
1608 gen.if((0, codegen_1._) `${names_1.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_1._) `${names_1.default.vErrors}.length`, errsCount), () => gen.assign(names_1.default.vErrors, null)));
1609 }
1610 exports.resetErrorsCount = resetErrorsCount;
1611 function extendErrors({ gen, keyword, schemaValue, data, errsCount, it, }) {
1612 /* istanbul ignore if */

Callers

nothing calls this directly

Calls 2

assignMethod · 0.80
ifMethod · 0.45

Tested by

no test coverage detected