endojs / endo

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

add importNowHook to SES Compartment #2201

Open naugtur opened 3 months ago

naugtur commented 3 months ago

What is the Problem Being Solved?

Any level of dynamic behavior for CJS require() in endo implemented on top of Compartment requires either preloading all dynamically requested modules or adding importNowHook - the synchronous version of importHook.

Description of the Design

Provide synchronous module loading facilities in SES by analogy to what already exists.

Security Considerations

TBD, none that I'm aware of.

Scaling Considerations

Test Plan

Compatibility Considerations

Upgrade Considerations