agoric-labs / jessica

Jessica - Jessie (secure distributed Javascript) Compiler Architecture
Apache License 2.0
36 stars 9 forks source link

experience report: issuer.js #34

Open dckc opened 3 years ago

dckc commented 3 years ago

comparing issuers.js vs. the grammar here (via a scala implementation), I ran across

To conform to the current grammar we'd have to change...

function makeIssuerKit(...) { ... }
harden(makeIssuerKit);
export { makeIssuerKit };

to more like...

export const makeIssuerKit = harden((...) => {...});

cc @erights @michaelfig

erights commented 3 years ago

For all four of these, I think we should change the definition of Jessie to allow them. I'll comment on each of the issues you link to.

erights commented 3 years ago

No, after reading https://github.com/Agoric/Jessie/issues/29 I changed my mind. It is correct. We should implement and use that std library so that we don't have unnecessarily unhardened objects, like instances of Set running around loose.