ISSUE 2: Should `globalThis` be required to extend from `EventTarget`?

Open
#16 7 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
api

Research direction

Start with the linked proposal issue and review the seven existing comments for the current discussion. Determine the intended relationship between globalThis and EventTarget, including event-listener methods and lifecycle events such as install, activate, and fetch; the issue is done only when that behavior is resolved and specified.

Written by the indexing model from the issue text.

Description

https://proposal-common-min-api.deno.dev/#issue-69352234

I think globalThis SHOULD extend from EventTarget. Or at lease there will be one EventTarget instance, and globalThis should mount that instance's *EventListener(), dispatchEvent().

And also, I think the lifetime and events (install, activate, fetch, etc.) also should be embodied.

Dominant language
Bikeshed
Stars
308
Forks
17
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from WinterTC55/proposal-minimum-common-api

All issues in WinterTC55/proposal-minimum-common-api

Similar issues

More Backend & API Design issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.