MCPcopy Create free account
hub / github.com/Cryptogenic/PS5-IPV6-Kernel-Exploit / wait_for_worker

Function wait_for_worker

document/en/ps5/exploit.js:33–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32//Make sure worker is alive?
33async function wait_for_worker() {
34 let p1 = await new Promise((resolve) => {
35 const channel = new MessageChannel();
36 channel.port1.onmessage = () => {
37 channel.port1.close();
38 resolve(1);
39 }
40 worker.postMessage(0, [channel.port2]);
41 });
42 return p1;
43}
44
45function find_worker() {
46

Callers 1

userlandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected