We want to wrap all the methods on our durable object in an AsyncLocalStorage context but keep getting errors with the wrong
this
this
being bound, or shared IO stuff, or private member access. We tried doing it with a proxy, and then copying the sentry approach. Both got close but had some error conditions like
Cannot perform I/O on behalf of a different Durable Object
Cannot perform I/O on behalf of a different Durable Object
or
Cannot read private member #_name from an object whose class did not declare it
Cannot read private member #_name from an object whose class did not declare it