source maps are off in browser dev tools

This commit is contained in:
Martin Aeschlimann
2021-09-22 20:39:37 +02:00
parent 65d3186f6d
commit 873f46eb27

View File

@@ -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;
}
});