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(init): workaround node promise destroyed bug #1166

Merged
merged 1 commit into from
Apr 20, 2022

Conversation

mhofman
Copy link
Contributor

@mhofman mhofman commented Apr 20, 2022

After #1115 landed in agoric-sdk, people stated experiencing errors like TypeError#1: Cannot assign to read only property 'Symbol(destroyed)' of object '[object Promise]'

The patch was overzealous and set the property as non-configurable and non-writable. This isn't a problem for the async_id and trigger_async_id symbols since node tests for their presence before assigning, however it seems node unconditionally set the destroyed symbol, and being an object, the description doesn't match (different value), and the later assignment throws.

I am not quite sure under which circumstances this situation arises, or I'd add a test for it.

@mhofman mhofman merged commit d03659e into master Apr 20, 2022
@mhofman mhofman deleted the mhofman/fix-promise-destroyed-exception branch April 20, 2022 02:28
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