feat(marshal): Allow promise stand-ins
Stacked on #1311
Fixes #1312
This is the most restrictive solution, in which a pseudo-promise is not
allowed to have any properties or methods (although that may be relaxed
in the future to support a then method and/or settlement/resolution
data).
TODO:
- [ ] combine promise and safe-promise helpers (after #1310 )
@gibson042 since this is stacked on #1311 , I edited the github PR to compare to #1311 's fork for easier reviewability. If this is not appropriate, feel free to change back.
(#1311 has since been merged, so this note is no longer relevant)
@mhofman I just created the label pseudo-promise and labeled this PR with that label, to keep track of PRs and issues relevant for thinking about possible pseudo-promise semantics.
Is this PR still relevant as a possible step towards virtual and durable promises?