Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardJavaScripttop-level await orderingSingle-choice MCQ

In a module graph with top-level await, when does a module's `Symbol.asyncIterator`-style 'execution promise' resolve relative to its importers, and what does this imply about a parent module's body?

// child.mjs await somePromise; export const ready = true; // parent.mjs import { ready } from './child.mjs'; console.log('parent body', ready);