WICG / js-self-profiling

Proposal for a programmable JS profiling API for collecting JS profiles from real end-user environments
Other
197 stars 13 forks source link

How does document policy work in workers? #33

Open annevk opened 3 years ago

annevk commented 3 years ago

In a worker you do not have access to a document which would make step 3 of profile() fail to compile or some such.

acomminos commented 3 years ago

It does not, currently. The spec has been updated to only expose profile on Window, with worker support pending progress on w3c/webappsec-permissions-policy#207.