tc39/proposal-top-level-await

Semantics of importing a cycle

littledan opened this issue · 3 comments

The ECMAScript specification takes pains to make sure that, if you throw an exception from the top level of one module in a cycle, all modules in the cycle behave like throwing an exception. Should we do the same thing with top-level await? In particular, should awaiting one module in a cycle await all modules in the cycle loading? The current draft spec doesn't have this property.

Yes, it's important that the current evaluation properties with respect to cycles are maintained.

OK, see #51 for an attempted fix to ensure this property is maintained.

Fixed in #51 (and I don't plan to revert this part).