mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-28 16:39:00 +01:00
TypeError thrown in instanceof DocumentSymbol (#255144)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user