MCPcopy
hub / github.com/apify/crawlee / g

Function g

test/core/error_tracker.test.ts:5–13  ·  view source on GitHub ↗
(error: { name?: string; message?: string; code?: string | number; stack?: string; cause?: any })

Source from the content-addressed store, hash-verified

3const random = () => Math.random().toString(36).slice(2);
4
5const g = (error: { name?: string; message?: string; code?: string | number; stack?: string; cause?: any }) => {
6 return {
7 name: random(),
8 message: random(),
9 code: 'code' in error ? error.code : random(),
10 stack: random(),
11 ...error,
12 };
13};
14
15const s = (stack: string) => {
16 const evalIndex = stack.indexOf('eval at ');

Callers 1

Calls 1

randomFunction · 0.85

Tested by

no test coverage detected