endojs / Jessie

Tiny subset of JavaScript for ocap-safe universal mobile code
Apache License 2.0
281 stars 16 forks source link

Allow named exports. #28

Closed michaelfig closed 2 years ago

michaelfig commented 5 years ago

If a hardening membrane (#43) is accepted into Jessie, there is no reason to prevent named exports from Jessie modules.

In fact, it is necessary for exporting multiple bindings from a module, as it is impossible to construct default exports with properties (that can be destructured in an importing module) without using Object.assign().

Thoughts?

michaelfig commented 5 years ago

Note that I have withdrawn #27 in favour of insulate(), which is linked from #29.

michaelfig commented 4 years ago

Now I have withdrawn insulate and proposed #43 instead.

michaelfig commented 2 years ago

Done.