summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/blink-contrib/resources/worker-eval.js
blob: 9aa87129aeef272e7559383e034fced3618929a0 (plain)
1
2
3
4
5
var id = 0;
try {
    id = eval("1 + 2 + 3");
} catch (e) {}
postMessage(id === 0 ? "eval blocked" : "eval allowed");