rchain-community / js2rho

experimental JavaScript to Rholang translator
3 stars 1 forks source link

rho contracts might neither return, throw, nor hang #10

Open dckc opened 4 years ago

dckc commented 4 years ago

In .js, the "behavioral type" of all methods is that they return, throw, or hang. As demonstrated in the notary example, this assumption can creep into the translation: https://github.com/rchain-community/js2rho/blob/7fe7637f2080774cf6edb377ce437b65106cb2b4/examples/notary.rho#L21