We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dced70b commit 47cd001Copy full SHA for 47cd001
src/vs/base/worker/workerMain.ts
@@ -17,7 +17,8 @@
17
// see https://github.com/w3c/webappsec-trusted-types/wiki/Trusted-Types-for-function-constructor
18
const fnArgs = args.slice(0, -1).join(',');
19
const fnBody = args.pop()!.toString();
20
- const body = `(function anonymous(${fnArgs}) {\n${fnBody}\n})`;
+ // Do not add a new line to fnBody, as this will confuse source maps.
21
+ const body = `(function anonymous(${fnArgs}) { ${fnBody}\n})`;
22
return body;
23
}
24
})
0 commit comments