endojs / endo

Endo is a distributed secure JavaScript sandbox, based on SES
Apache License 2.0
788 stars 70 forks source link

daemon: Consider value provision and formula overwrites #2147

Closed rekmarks closed 4 months ago

rekmarks commented 4 months ago

In the course of implementing #2139, the question of whether the daemon's provideWorker() should overwrite existing names corresponding to non-worker formulas. In general, if the daemon receives a command to create a value of type A with name foo, then we would like to either provide the existing foo if it is of type A, or assign a new value of type A to foo, thereby overwriting the old one. Currently, multiple problems stand in the way of realizing this:

To resolve these problems, we need to consider what our story is for value provision and formula overwrites.

rekmarks commented 4 months ago

I'm going to consider this closed by #2139.