endojs / endo

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

feat(captp): allow external import/export tables #2564

Closed kumavis closed 1 month ago

kumavis commented 1 month ago

This PR exposes an optional configuration for captp that allows you to:

This may be useful If you want:

This change was motivated by working on the ExternalReferenceController of the gems experiment, which enabled durable imported presences with lazy captp connections re-established on use.

This is an alternate implementation of https://github.com/endojs/endo/pull/2562, which ended up duplicating import/export tables inside and above captp.

ExtRefController migration notes from alternative implementation:

kumavis commented 1 month ago

is something missing from the tables? traps? gcImports in MakeCapTPImportExportTablesOptions seems lonely -- maybe pass in all options?