3 ms·
For 1), what about requiring an ES module that doesn’t itself use top-level await, but imports another ES module that uses top-level await?
by jcheng 3y ago
For 1), what about requiring an ES module that doesn’t itself use top-level await, but imports another ES module that uses top-level await?
- Jarred 3y agoThat throws since we cannot make it synchronous. It works by reading the internal state of the Promise and getting the value out of it if the Promise is fulfilled.