MCPcopy
hub / github.com/jquery/esprima / tolerateError

Method tolerateError

src/error-handler.ts:62–69  ·  view source on GitHub ↗
(index: number, line: number, col: number, description: string)

Source from the content-addressed store, hash-verified

60 }
61
62 tolerateError(index: number, line: number, col: number, description: string) {
63 const error = this.createError(index, line, col, description);
64 if (this.tolerant) {
65 this.recordError(error);
66 } else {
67 throw error;
68 }
69 }
70
71}

Callers

nothing calls this directly

Calls 2

createErrorMethod · 0.95
recordErrorMethod · 0.95

Tested by

no test coverage detected