mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
source maps are off in browser dev tools
This commit is contained in:
@@ -29,7 +29,7 @@ namespace TrustedFunction {
|
||||
// Malicious inputs can escape the function body and execute immediately!
|
||||
const fnArgs = args.slice(0, -1).join(',');
|
||||
const fnBody = args.pop()!.toString();
|
||||
const body = `(function anonymous(${fnArgs}) {\n${fnBody}\n})`;
|
||||
const body = `(function anonymous(${fnArgs}) {${fnBody}\n})`;
|
||||
return body;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user