Skip to content

Commit

Permalink
feat(E): starting to add missing E.sendOnly()
Browse files Browse the repository at this point in the history
To bring E() syntax/convience methods into alignment closer to
what is proposed/shown in https://github.com/tc39/proposal-eventual-send.
  • Loading branch information
zarutian authored Oct 12, 2020
1 parent f4de1c2 commit e04ee59
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/eventual-send/src/E.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,18 @@ function EProxyHandler(x, HandledPromise) {
});
}

/**
* A Proxy handler for E.sendOnly(x)
* For now it is just a variant on the E(x) Proxy handler.
*
* @param {*} x Any value passed to E.sendOnly(x)
* @returns {ProxyHandler} the Proxy handler
*/
function EsendOnlyProxyHandler(x, HandledPromise) {
return harden({
});
}

export default function makeE(HandledPromise) {
function E(x) {
const handler = EProxyHandler(x, HandledPromise);
Expand Down

0 comments on commit e04ee59

Please sign in to comment.