MCPcopy Index your code
hub / github.com/jquery/esprima / tolerate

Method tolerate

src/error-handler.ts:26–32  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

24 }
25
26 tolerate(error): void {
27 if (this.tolerant) {
28 this.recordError(error);
29 } else {
30 throw error;
31 }
32 }
33
34 constructError(msg: string, column: number): Error {
35 let error = new Error(msg);

Callers 2

tokenizeFunction · 0.80

Calls 1

recordErrorMethod · 0.95

Tested by

no test coverage detected