mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Fix TS 3.1 error in "extensions/json-language-features/client/src/utils/hash.ts". Fixes #59761
This commit is contained in:
parent
4c963c0895
commit
429b7e2848
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue