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

fix(daemon): binding Promise breaks exo #2439

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

Conversation

kumavis
Copy link
Member

@kumavis kumavis commented Aug 29, 2024

this fixes Exo compatibility for Endo Daemon

@kumavis kumavis requested a review from kriskowal August 30, 2024 18:36
@kumavis kumavis mentioned this pull request Aug 30, 2024
5 tasks
@@ -65,6 +65,8 @@ const hardenedEndowments = harden({
TextEncoder,
TextDecoder,
URL,
// This one is important for exo to work.
Copy link
Member

Choose a reason for hiding this comment

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

@mhofman or @michaelfig can I ask you to help @kumavis expand this comment to explain why and where to look for more? I think this is the work of the handled promise shim, but I did not know it replaced globalThis.Promise.

Copy link
Member

Choose a reason for hiding this comment

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

@endo/eventual-send does not mutate Promise in any way, so I'm confused as to why this line is necessary.

Copy link
Contributor

Choose a reason for hiding this comment

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

I really don't understand why this is necessary. Is there anything in your environment that might be replacing the global Promise? Maybe some telemetry library?

@kumavis kumavis mentioned this pull request Sep 5, 2024
5 tasks
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.

4 participants