From 40603817d71c2e28786802fa16dd177dd3b34b08 Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Thu, 10 Jul 2025 15:59:38 +0200 Subject: [PATCH] TypeError thrown in instanceof DocumentSymbol (#255144) --- src/vs/workbench/api/common/extHostTypes.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/vs/workbench/api/common/extHostTypes.ts b/src/vs/workbench/api/common/extHostTypes.ts index c4e454261a3b..5ea598a3f50a 100644 --- a/src/vs/workbench/api/common/extHostTypes.ts +++ b/src/vs/workbench/api/common/extHostTypes.ts @@ -1422,9 +1422,6 @@ export class DocumentSymbol extends AbstractDocumentSymbol { } static override[Symbol.hasInstance](candidate: unknown): boolean { - if (!isObject(candidate)) { - throw new TypeError(); - } return candidate instanceof AbstractDocumentSymbol || candidate instanceof SymbolInformationAndDocumentSymbol; }