blob: 453da6aae514738b9c0cbb61f780c675b7f824f4 (
plain)
1
2
3
4
5
6
7
8
9
|
const expected = 'self location close onerror importScripts navigator addEventListener removeEventListener dispatchEvent name onconnect setTimeout clearTimeout setInterval clearInterval'.split(' ');
let log = '';
for (let i = 0; i < expected.length; ++i) {
if (!(expected[i] in self))
log += expected[i] + ' did not exist\n';
}
onconnect = e => {
e.ports[0].postMessage(log);
};
|