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

Function s

test/core/error_tracker.test.ts:15–25  ·  view source on GitHub ↗
(stack: string)

Source from the content-addressed store, hash-verified

13};
14
15const s = (stack: string) => {
16 const evalIndex = stack.indexOf('eval at ');
17 const atIndex = stack.indexOf('at ');
18 const index = evalIndex === -1 ? atIndex : evalIndex;
19
20 return stack
21 .slice(index)
22 .split('\n')
23 .map((line) => line.trim())
24 .join('\n');
25};
26
27// A case for
28// https://github.com/microsoft/playwright/blob/99d1ad5a88c3e89360829eee92dbaa98d75beaa4/packages/playwright-core/src/server/dispatchers/dispatcher.ts#L329

Callers 1

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected