Open jakearchibald opened 7 years ago
@jakearchibald brought up a good point in person that sometimes you might want to reference the same tasklet instance. I don’t think our current proxies are transferrable, so there’s currently a way to reference (and interact with) the same tasklet instance from both the ServiceWorker and the main thread.
I think it’s worth considering to return an existing tasklet instance if the same URL + host origin is used (similar to modules).
Assuming global state may be retained in a tasklet, clarify the scope of the global.
Is it:
Without closing
example.com/yo
:Without closing
example.com/yo
orexample.com/foo
: