diff --git a/packages/@glimmer/runtime/lib/managers/index.ts b/packages/@glimmer/runtime/lib/managers/index.ts index 45a4c54b2a..754b2650b6 100644 --- a/packages/@glimmer/runtime/lib/managers/index.ts +++ b/packages/@glimmer/runtime/lib/managers/index.ts @@ -40,10 +40,7 @@ const HELPER_MANAGERS = new WeakMap< ManagerFactory | Helper> >(); -const OWNER_MANAGER_INSTANCES: WeakMap< - Owner, - WeakMap, unknown> -> = new WeakMap(); +const OWNER_MANAGER_INSTANCES: WeakMap, unknown>> = new WeakMap(); const UNDEFINED_MANAGER_INSTANCES: WeakMap, unknown> = new WeakMap(); export type ManagerFactory = (owner: O) => D; @@ -107,7 +104,7 @@ function getManagerInstanceForOwner( managers = OWNER_MANAGER_INSTANCES.get(owner); if (managers === undefined) { - managers = new WeakMap(); + managers = new Map(); OWNER_MANAGER_INSTANCES.set(owner, managers); } }