-
Notifications
You must be signed in to change notification settings - Fork 217
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
support for watchedPromises in fakeVirtualSupport #8661
support for watchedPromises in fakeVirtualSupport #8661
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think having an independent ID for promises in the tests would match the behavior of the master PR closer, but I'm ok if this lands as is
function allocatePromiseID() { | ||
const exportID = nextExportID; | ||
nextExportID += 1; | ||
return exportID; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would feel more consistent to use a separate ID
function allocatePromiseID() { | |
const exportID = nextExportID; | |
nextExportID += 1; | |
return exportID; | |
} | |
let nextPromiseID = 1; | |
function allocatePromiseID() { | |
const promiseID = nextPromiseID; | |
nextPromiseID += 1; | |
return promiseID; | |
} |
cb435a5
to
b5bc7e2
Compare
* test: support for watchedPromises in fakeVirtualSupport Needed by #8488 * chore: update allocatePromiseID to use nextExportID * chore: distinct ID range for proises
* test: support for watchedPromises in fakeVirtualSupport Needed by #8488 * chore: update allocatePromiseID to use nextExportID * chore: distinct ID range for proises
…ic#8772) * test: support for watchedPromises in fakeVirtualSupport Needed by Agoric#8488 * chore: update allocatePromiseID to use nextExportID * chore: distinct ID range for proises
Needed by #8488
refs: #8488
refs: #8618
Description
Move the support for watchedPromises in #8618 from master to release
Security Considerations
N/A
Scaling Considerations
N/A
Documentation Considerations
None
Testing Considerations
Includes updates to tests.
Upgrade Considerations
yes.