Skip to content

Commit 4060381

Browse files
authored
TypeError thrown in instanceof DocumentSymbol (microsoft#255144)
1 parent 26bb572 commit 4060381

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/vs/workbench/api/common/extHostTypes.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,9 +1422,6 @@ export class DocumentSymbol extends AbstractDocumentSymbol {
14221422
}
14231423

14241424
static override[Symbol.hasInstance](candidate: unknown): boolean {
1425-
if (!isObject(candidate)) {
1426-
throw new TypeError();
1427-
}
14281425
return candidate instanceof AbstractDocumentSymbol
14291426
|| candidate instanceof SymbolInformationAndDocumentSymbol;
14301427
}

0 commit comments

Comments
 (0)