Closed ajvincent closed 4 years ago
Relates to #193, #179.
The object graph violation comes from Bob.foo = await AliceProxy.foo
. At this point, the membrane is no longer in play.
This is invalid. It just works.
@ajvincent Thanks for updating PR. I'm also following observable membrane progress, esp on this PR https://github.com/salesforce/observable-membrane/pull/48
The es-membrane library can't currently inspect the return values of Promise instances. (They're Promises. We don't have their values.)
That said, we can write something like this before it gets through the membrane:
p = p.then(wrapResultAndReturn, wrapResultAndThrow);