stdlibModuleNames property

Iterable<String> get stdlibModuleNames

Known stdlib modules and their registration functions.

Maps dart:xxx path names to their registration callbacks. null means the module is handled by Stdlib.register at init time (core, async) and requires no additional registration. The dart: libraries this loader knows about, including the two that arrive pre-registered.

Exposed read-only so a guard can drive off the production list rather than a copy of it. SCC76 needs to register every stdlib module into one environment to check for duplicate bridge names, and a hardcoded copy of this list in a test would decay silently — the same failure the guard itself exists to prevent, one level up.

Implementation

static Iterable<String> get stdlibModuleNames => _stdlibRegistrars.keys;