mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Fix TS 3.1 error in "extensions/json-language-features/client/src/utils/hash.ts". Fixes #59761
This commit is contained in:
@@ -23,8 +23,7 @@ export function hash(obj: any, hashVal = 0): number {
|
||||
case 'number':
|
||||
return numberHash(obj, hashVal);
|
||||
case 'undefined':
|
||||
// TODO: TS 3.1 upgrade. Why are we passing undefined here?
|
||||
return numberHash(obj as any, 937);
|
||||
return 937 * 31;
|
||||
default:
|
||||
return numberHash(obj, 617);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user