Skip to content
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

It should be impossible to construct an AbortSignal manually #36064

Open
benjamingr opened this issue Nov 10, 2020 · 1 comment
Open

It should be impossible to construct an AbortSignal manually #36064

benjamingr opened this issue Nov 10, 2020 · 1 comment

Comments

@benjamingr
Copy link
Member

@benjamingr benjamingr commented Nov 10, 2020

In AbortController/AbortSignal it is possible to construct an AbortSignal without a controller (but shouldn't be):

> var c = new AbortController();
> new c.signal.constructor()
AbortSignal { aborted: false }

Correct behavior:

> var c = new AbortController();
new c.signal.constructor()
TypeError: Illegal Constructor

This should be a relatively simple fix but it's a spec compliance issue - so if no new contributor picks this up I'll fix this sometime next week :]

@dev-script
Copy link
Contributor

@dev-script dev-script commented Nov 10, 2020

@benjamingr , I would like to work on this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.