summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/content-security-policy/blink-contrib/resources/worker-set-timeout.js
blob: a16827eddfc8b214f674614de1cc2b9d10009141 (plain)
1
2
3
4
5
var id = 0;
try {
    id = setTimeout("postMessage('handler invoked')", 100);
} catch (e) {}
postMessage(id === 0 ? "setTimeout blocked" : "setTimeout allowed");