diff --git a/src/collections/decodeableMap.ts b/src/collections/decodeableMap.ts index 9eeae8cf24..c73701d0b1 100644 --- a/src/collections/decodeableMap.ts +++ b/src/collections/decodeableMap.ts @@ -24,7 +24,9 @@ export class DecodeableMap extends Map { // Internal map of decoded keys to encoded keys. // E.g., { 'foo-v1.3 Layout': 'foo-v1%2E3 Layout' } - // This is initialized in the `keysMap` getter. + // This is initialized in the `keysMap` getter due to the constructor calling + // `super` before the initialization happens, and it needs to be initialized + // before `this.set()` is called or `TypeErrors` will be thrown. private internalkeysMap!: Map; private get keysMap(): Map {