chromium/third_party/blink/web_tests/external/wpt/content-security-policy/script-src/support/worker-function-function.js

var fn = function() {
    postMessage('Function() function blocked');
}
try {
    fn = new Function("", "postMessage('Function() function allowed');");
} catch (e) {}
fn();