MCPcopy
hub / github.com/microsoft/vscode-js-debug / wrapped

Function wrapped

src/common/sourceUtils.test.ts:26–35  ·  view source on GitHub ↗
(...stmts: string[])

Source from the content-addressed store, hash-verified

24 });
25
26 const wrapped = (...stmts: string[]) =>
27 [
28 '(() => {',
29 ' try {',
30 ...stmts.map(s => ` ${s}`),
31 ' } catch (e) {',
32 ' return e.stack || e.message || String(e);',
33 ' }',
34 '})()',
35 ].join('\n');
36
37 describe('logMessageToExpression', () => {
38 const cases: { [name: string]: [string, string] } = {

Callers 1

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected