Skip to content
This repository was archived by the owner on Nov 5, 2025. It is now read-only.

Comments

Prevent proxies from sending toJSON calls via IPC#689

Merged
d-gubert merged 2 commits intofeat/deno-runtimefrom
deno/prevent-proxy-tojson
Dec 22, 2023
Merged

Prevent proxies from sending toJSON calls via IPC#689
d-gubert merged 2 commits intofeat/deno-runtimefrom
deno/prevent-proxy-tojson

Conversation

@d-gubert
Copy link
Member

What? ⛵

The proxies used to send method calls as request over IPC ended up also sending calls to the toJSON method as a request. This, of course, makes no sense and only causes problems.

This PR also adds a toJSON implementation to the App abstract class, as the app instance can be sent over for configuration methods if the object sent has a reference to the App instance. E.g. instantiating a slashcommand class that takes the instace of the App as parameter via constructor.

Why? 🤔

Links 🌎

PS 👀

@d-gubert d-gubert merged commit 4a6c7e5 into feat/deno-runtime Dec 22, 2023
@d-gubert d-gubert deleted the deno/prevent-proxy-tojson branch December 22, 2023 18:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant