MhasTopLevelAwait
Bun

method

vm.SourceTextModule.hasTopLevelAwait

hasTopLevelAwait(): boolean;

Returns whether the module itself contains any top-level await expressions.

This corresponds to the field [[HasTLA]] in Cyclic Module Record in the ECMAScript specification.