(index: number)
| 28 | } |
| 29 | |
| 30 | export function scriptFor(index: number): string { |
| 31 | return [ |
| 32 | `function profileFunction${index}(value) {`, |
| 33 | ` console.error(new Error('Profile error from script ' + ${index}));`, |
| 34 | ` return value + ${index};`, |
| 35 | '}', |
| 36 | 'globalThis.profileScriptResults ??= [];', |
| 37 | `globalThis.profileScriptResults.push(profileFunction${index}(${index}));`, |
| 38 | `//# sourceMappingURL=/maps/script-${index}.js.map`, |
| 39 | '', |
| 40 | ].join('\n'); |
| 41 | } |
| 42 | |
| 43 | export async function startSourceMapTestServer( |
| 44 | scriptCount = 100, |
no outgoing calls
no test coverage detected