summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/blink-contrib/resources/worker-function-function.js
blob: 03d9bf4cbbcad9baacf75d343457f0954125d84e (plain)
1
2
3
4
5
6
7
var fn = function() {
    postMessage('Function() function blocked');
}
try {
    fn = new Function("", "postMessage('Function() function allowed');");
} catch (e) {}
fn();