GoogleChromeLabs / GoogleChromeLabs/comlink

Finalizers, proxy and two-way communication

Open
#626 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
12.8k
Forks
435
PR merge metrics
No merged PRs in 30d

Description

`proxyCounter` for an endpoint should at least be incremented by 1 when `Comlink.expose` is called on that endpoint. Otherwise things might break if a proxy is temporarily created to call a function despite a `Comlink.expose` being active.

Reproducible example: https://stackblitz.com/edit/node-afa7lv?file=index.html

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.