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

feat(ext/web): Add AbortSignal.reason #12697

Merged
merged 2 commits into from
Nov 8, 2021

Conversation

crowlKats
Copy link
Member

@crowlKats crowlKats commented Nov 8, 2021

Closes #12695
Also includes some webidl cleanup

@lucacasonato lucacasonato added this to the 1.16.0 milestone Nov 8, 2021
Copy link
Member

@lucacasonato lucacasonato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

static abort(reason = undefined) {
if (reason !== undefined) {
reason = webidl.converters.any(reason);
}
const signal = new AbortSignal(illegalConstructorKey);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should clean this up in a follow up. Should be using webidl.createBranded.

@lucacasonato lucacasonato merged commit ccd730a into denoland:main Nov 8, 2021
@crowlKats crowlKats deleted the abort_reason branch November 8, 2021 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add abort reason to AbortSignal
2 participants