Node: It should be impossible to construct an AbortSignal manually

Created on 10 Nov 2020  路  3Comments  路  Source: nodejs/node

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 :]

eventtarget good first issue

Most helpful comment

@benjamingr , I would like to work on this issue

All 3 comments

@benjamingr , I would like to work on this issue

Thanks @RaisinTen !

@benjamincburns you're welcome. :slightly_smiling_face:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cong88 picture cong88  路  3Comments

Icemic picture Icemic  路  3Comments

dfahlander picture dfahlander  路  3Comments

sandeepks1 picture sandeepks1  路  3Comments

vsemozhetbyt picture vsemozhetbyt  路  3Comments