tc39/proposal-top-level-await

Editorial: Make a simple Promise-based way to evaluate a module

littledan opened this issue · 1 comments

To make it simpler for embedding environments to execute modules, create a wrapper for module.Evaluate() which always returns a Promise, instead of sometimes returning a Promise and other times returning a completion record. This would limit the scope of things conditionally being a Promise to a smaller area and make the surface area for hosts simpler. Thanks to @domenic for the suggestion.

Fixed in #74.