The type of e is MessageEvent.
MessageEvent - Web APIs.
To enable SharedArrayBuffer, we need a secure context crossOriginIsolated.

To set crossOriginIsolated to true, we need two headers.
same-originrequire-corpTim already built a super easy toolkit that sets both headers to the desired values. Then we only need to

This is so cool.



Note that
main only notify().main never wait().worker will yield to wait().
Voila! I have created a synchronous polyfill layer for window.prompt and window.innerHeight functions inside a worker.
No comments yet. Be the first to share your thoughts.