Skip to content

fix(patterns,exo): abstract guard getters#1745

Merged
erights merged 1 commit into
masterfrom
markm-abstract-guard-tag
Aug 31, 2023
Merged

fix(patterns,exo): abstract guard getters#1745
erights merged 1 commit into
masterfrom
markm-abstract-guard-tag

Conversation

@erights

@erights erights commented Aug 28, 2023

Copy link
Copy Markdown
Contributor

To prepare for #1712 , first abstract access to the contents of the guards. Once agoric-sdk is updated to a version of endo with this PR, its use of guards can be switched from directly accessing record properties, which would break on transition to #1712 , to calling the getters defined here, which will work before and after.

Once all such access is changed, we can then do a later endo release incorporating #1712 without breaking agoric-sdk.

@erights
erights requested a review from michaelfig August 28, 2023 02:49
@erights erights self-assigned this Aug 28, 2023
@erights
erights requested a review from turadg August 28, 2023 02:52
@erights
erights force-pushed the markm-abstract-guard-tag branch from 58b00d6 to 019a872 Compare August 28, 2023 02:54
@erights
erights force-pushed the markm-abstract-guard-tag branch 3 times, most recently from dd2e023 to 0e642c3 Compare August 28, 2023 04:17
@erights
erights requested review from gibson042 and kriskowal August 28, 2023 04:27
@erights
erights force-pushed the markm-abstract-guard-tag branch 2 times, most recently from 14b381a to 4eb0bd1 Compare August 29, 2023 05:00
@erights

erights commented Aug 29, 2023

Copy link
Copy Markdown
Contributor Author

Ready for review

@turadg
turadg removed their request for review August 29, 2023 18:13
@turadg

turadg commented Aug 29, 2023

Copy link
Copy Markdown
Member

Removed myself as I won't have time until Friday.

@erights
erights force-pushed the markm-abstract-guard-tag branch 2 times, most recently from 4e66d97 to ca66ee9 Compare August 30, 2023 01:18

@gibson042 gibson042 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM after TS fixes

Comment thread packages/exo/test/test-heap-classes.js Outdated
Comment thread packages/patterns/src/patterns/patternMatchers.js Outdated
Comment thread packages/patterns/src/types.js Outdated
Comment thread packages/patterns/src/types.js Outdated
Comment thread packages/patterns/src/types.js Outdated
@erights
erights force-pushed the markm-abstract-guard-tag branch from ca66ee9 to dcf1071 Compare August 31, 2023 00:15
@erights
erights enabled auto-merge August 31, 2023 00:17
@erights
erights merged commit afe918b into master Aug 31, 2023
@erights
erights deleted the markm-abstract-guard-tag branch August 31, 2023 00:23
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.

3 participants