endojs / endo

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

refactor(daemon): Synchronize incarnateReadableBlob() #2142

Closed rekmarks closed 5 months ago

rekmarks commented 5 months ago

Progresses: #2086

Merges the daemon's storeReaderRef() into incarnateReadableBlob() and synchronizes the implementation. Also converts makeReadableBlob() into makeControllerForReadableBlob() to align it with the family of functions that already exist for most other formulas.

Contrary to its predecessor, incarnateReadableBlob() returns the value for stored value, namely a FarEndoReadable. A unit test is added for the case of immediately using a stored value without naming it.