MCPcopy Create free account
hub / github.com/CJex/regulex / errorAsKey

Function errorAsKey

test/utils.ts:46–48  ·  view source on GitHub ↗
(err: Error)

Source from the content-addressed store, hash-verified

44// We use this hack to recover original AssertionError instance.
45const FastCheckGlobalErrorMap = new Map<string, AssertionError>();
46function errorAsKey(err: Error): string {
47 return '###' + err + '\n' + err.stack + '\n' + JSON.stringify(err) + '###';
48}
49
50const PG = PropertyGeneric as any;
51PG.Property.prototype.run = function(this: any, v: any): any {

Callers 1

utils.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected