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

Adjust callback function invocation. #169

Merged
merged 1 commit into from
Aug 16, 2024
Merged

Conversation

jeremyroman
Copy link
Contributor

@jeremyroman jeremyroman commented Aug 9, 2024

Unforunately this isn't purely editorial, because in the process of adjusting the use of "invoke" a number of other things needed to be clarified.

Namely:

  • the operation map now holds JS function objects (i.e., anything with [[Call]])
  • these function objects are converted to a specific IDL types only when they are about to be invoked
  • the select URL algorithm reacts to the promise rather than expecting its value (or rejection reason) to be immediately available

Part of whatwg/webidl#1425.


Preview | Diff

Unforunately this isn't purely editorial, because in the process of
adjusting the use of "invoke" a number of other things needed to be
clarified.

Namely:
* the operation map now holds JS function objects (i.e., anything with
  [[Call]])
* these function objects are converted to a specific IDL types only
  when they are about to be invoked
* the select URL algorithm reacts to the promise rather than expecting
  its value (or rejection reason) to be immediately available

Part of whatwg/webidl#1425.
@jeremyroman
Copy link
Contributor Author

@pythagoraskitty ptal? I think this is what is intended here (modulo some other things that remain a little unclear but aren't directly blocking the invoke change).

spec.bs Show resolved Hide resolved
Copy link
Collaborator

@xyaoinum xyaoinum left a comment

Choose a reason for hiding this comment

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

LGTM % a quick question.

@jeremyroman
Copy link
Contributor Author

When this is ready in your opinion, I think one of you will need to merge it, as I don't have write access to this repository.

@xyaoinum xyaoinum merged commit ea25980 into WICG:main Aug 16, 2024
1 check passed
github-actions bot added a commit that referenced this pull request Aug 16, 2024
SHA: ea25980
Reason: push, by xyaoinum

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants