endojs / endo

Endo is a distributed secure JavaScript sandbox, based on SES
Apache License 2.0
829 stars 72 forks source link

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

Closed erights closed 1 year ago

erights commented 1 year ago

To prepare for https://github.com/endojs/endo/pull/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 commented 1 year ago

Ready for review

turadg commented 1 year ago

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