MCPcopy
hub / github.com/vercel/next.js / ignoreList

Function ignoreList

packages/next/src/server/lib/source-maps.test.ts:10–20  ·  view source on GitHub ↗
(frames: StackFrame[])

Source from the content-addressed store, hash-verified

8
9// Reference implementation with nullable frames.
10function ignoreList(frames: StackFrame[]) {
11 ignoreListAnonymousStackFramesIfSandwiched(
12 frames,
13 (frame) => frame !== null && frame.file === '<anonymous>',
14 (frame) => frame !== null && frame.ignored,
15 (frame) => (frame === null ? '' : frame.methodName),
16 (frame) => {
17 frame!.ignored = true
18 }
19 )
20}
21
22test('hides small sandwiches', () => {
23 const frames: StackFrame[] = [

Callers 1

Tested by

no test coverage detected