Skip to content

Comlink API: Pass the context argument to windowEndpoint, not wrap - #1087

Merged
adamziel merged 1 commit into
trunkfrom
comlink-api-pass-context-to-window-endpoint
Mar 6, 2024
Merged

Comlink API: Pass the context argument to windowEndpoint, not wrap#1087
adamziel merged 1 commit into
trunkfrom
comlink-api-pass-context-to-window-endpoint

Conversation

@adamziel

@adamziel adamziel commented Mar 6, 2024

Copy link
Copy Markdown
Collaborator

Follows up on #1085 that correctly identified the issue with postMessage event handlers, but passed the context argument to the wrong function call. wrap() uesd in that PR is not responsible for binding the message event handler. windowEndpoint() is. This PR fixes the mistake.

Follows up on #1085 that correctly identified the issue with
`postMessage` event handlers, but passed the context argument to the
wrong function call. `wrap()` uesd in that PR is not responsible for binding the message
event handler. `windowEndpoint()` is. This PR fixes the mistake.
@adamziel adamziel added [Type] Bug An existing feature does not function as intended [Aspect] Browser JS API labels Mar 6, 2024
@adamziel
adamziel merged commit 2884b17 into trunk Mar 6, 2024
@adamziel
adamziel deleted the comlink-api-pass-context-to-window-endpoint branch March 6, 2024 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Aspect] Browser [Type] Bug An existing feature does not function as intended

1 participant