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(ses): Add HandledPromise to the whitelist #416

Merged
merged 4 commits into from
Aug 13, 2020

Conversation

michaelfig
Copy link
Member

This is a temporary fix until lockdown gets a more disciplined way of updating the whitelist with vetted shims. In any event, it is a step toward Promise.delegate, but that standard hasn't yet been implemented in @agoric/eventual-send/shim.

@kriskowal Please update and release a new patch version of ses, so that we can use this in agoric-sdk.

Copy link
Member

@kriskowal kriskowal left a comment

Choose a reason for hiding this comment

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

Nits, and please get a signature from @erights for this expedient.

packages/ses/src/whitelist.js Show resolved Hide resolved
@@ -59,6 +59,7 @@ export const universalPropertyNames = {
Map: 'Map',
Number: 'Number',
Object: 'Object',
HandledPromise: 'HandledPromise', // TODO: Until Promise.delegate.
Copy link
Member

Choose a reason for hiding this comment

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

More information on the TODO will make it more clear when TODO can be removed.

@kriskowal
Copy link
Member

Please add an entry to NEWS.md.

@michaelfig michaelfig force-pushed the mfig/whitelist-handled-promise branch from 72ac6be to c571a74 Compare August 13, 2020 22:53
Copy link
Contributor

@erights erights left a comment

Choose a reason for hiding this comment

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

LGTM

@michaelfig michaelfig force-pushed the mfig/whitelist-handled-promise branch from ba2a9bb to c60b7a6 Compare August 13, 2020 23:00
@michaelfig
Copy link
Member Author

Please add an entry to NEWS.md.

Done.

@kriskowal kriskowal changed the title fix: add HandledPromise to the whitelist fix(ses): Add HandledPromise to the whitelist Aug 13, 2020
@kriskowal kriskowal merged commit a7330a8 into master Aug 13, 2020
@kriskowal kriskowal deleted the mfig/whitelist-handled-promise branch August 13, 2020 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants