-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ISSUE 2: Should globalThis
be required to extend from EventTarget
?
#16
Comments
That seems like something that would conflict pretty heavily with browsers. |
Why? In all three primary browser realm types (main thread, workers, service workers etc), |
ah, i think i was confusing it with event emitters. It makes sense that there's a global |
Deno uses the global event target for "load" and "unload" events for example. CFW uses it for the global "fetch" event. |
|
Fastly also use it for the global "fetch" event -- https://js-compute-reference-docs.edgecompute.app/index.html#addeventlistener |
We discussed this issue on the last wintercg call. Where we landed is that the idea that |
I think
globalThis
SHOULD extend fromEventTarget
. Or at lease there will be oneEventTarget
instance, andglobalThis
should mount that instance's*EventListener()
,dispatchEvent()
.And also, I think the lifetime and events (
install
,activate
,fetch
, etc.) also should be embodied.The text was updated successfully, but these errors were encountered: