跳转到内容

SideModuleHost

此内容尚不支持你的语言。

Defined in: sideModules/host.ts:21

Realm-agnostic acquirer for optional native modules.

acquire(id): Promise<SideModule | null>

Defined in: sideModules/host.ts:23

Instantiate id for this realm (cached); null if unavailable or it failed.

SideModuleId

Promise<SideModule | null>


optional source(id): Promise<SideModuleSource | null>

Defined in: sideModules/host.ts:26

The glue and binary id is instantiated from, for a worker to instantiate its own copy; absent where the realm has none to hand over.

SideModuleId

Promise<SideModuleSource | null>