MCPcopy Index your code
hub / github.com/dchester/jsonpath / assert

Function assert

jsonpath.js:215–220  ·  view source on GitHub ↗
(condition, message)

Source from the content-addressed store, hash-verified

213 // Do NOT use this to enforce a certain condition on any user input.
214
215 function assert(condition, message) {
216 /* istanbul ignore if */
217 if (!condition) {
218 throw new Error('ASSERT: ' + message);
219 }
220 }
221
222 function isDecimalDigit(ch) {
223 return (ch >= 48 && ch <= 57); // 0..9

Callers 6

addCommentFunction · 0.85
scanNumericLiteralFunction · 0.85
scanStringLiteralFunction · 0.85
scanRegExpBodyFunction · 0.85
throwErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected