Fix TS 3.1 error in "extensions/json-language-features/client/src/utils/hash.ts". Fixes #59761

This commit is contained in:
Martin Aeschlimann 2018-10-02 11:08:05 +02:00
parent 4c963c0895
commit 429b7e2848

View file

@ -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);
}