endojs / endo

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

refactor(daemon): Coordinate host `provideX` implementations #2139

Closed rekmarks closed 6 months ago

rekmarks commented 6 months ago

Progresses: #2086

coordinate, verb, "to combine in harmonious relation or action."

Synchronizes the host's provideWorker(). In addition, coordinates the implementations of the host's provideX methods such that they all:

  1. Attempt to get the existing formula id for the provided name, if any.
  2. If there is no existing formula id, incarnate and return a new value.

All type checks during step 1 have been removed. In other words, if you attempt to provide something under an existing name that resolves to a different value type, you're on your own. We may revisit this decision in the future.

kriskowal commented 6 months ago

coordinate, verb, "to combine in harmonious relation or action."

and etymologically, “order with”.