From 7893a121c0d85cf8e747cbfa82005444a96316de Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 9 Nov 2021 17:36:18 +0530 Subject: [PATCH] Initialize in field --- src/logging/BaseLogger.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/logging/BaseLogger.ts b/src/logging/BaseLogger.ts index bd9b6811..311af22d 100644 --- a/src/logging/BaseLogger.ts +++ b/src/logging/BaseLogger.ts @@ -23,11 +23,10 @@ import {Platform} from "../platform/web/Platform.js"; type LabelOrValues = string | {l: string; [key: string]: unknown}; export abstract class BaseLogger { - protected _openItems: Set; + protected _openItems: Set = new Set(); protected _platform: Platform; constructor({platform}) { - this._openItems = new Set(); this._platform = platform; }