提交 429b7e28 编写于 作者: M Martin Aeschlimann

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

上级 4c963c08
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册