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

Use quoted access for Module['ctx']. NFC #22882

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Nov 7, 2024

This was the last property explicitly listed in the closure type annotate for the Module object. This means that it was previously being preserved by closure via this mechanism, but now we preserve it via the normal quoting mechanism.

I've been looking at removing ctx and canvas from the Module object, but this change is just about consistency.

See #22876

This was the last property explicitly listed in the closure type
annotate for the `Module` object.  This means that it was previously
being preserved by closure via this mechanism, but now we preserve it
via the normal quoting mechanism.

I've been looking at removing `ctx` and `canvas` from the `Module`
object, but this change is just about consistency.

See emscripten-core#22876
@sbc100 sbc100 requested a review from kripken November 7, 2024 22:28
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

I hope we can remove this entirely. I suspect it is only needed for legacy reasons.

@sbc100 sbc100 enabled auto-merge (squash) November 7, 2024 22:43
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