提交 de7bb5b5 编写于 作者: M Martin Aeschlimann

tokenClassificationRegistry.ts: Use Object.create(null)

上级 33b077a0
......@@ -312,8 +312,8 @@ class TokenClassificationRegistry implements ITokenClassificationRegistry {
};
constructor() {
this.tokenTypeById = {};
this.tokenModifierById = {};
this.tokenTypeById = Object.create(null);
this.tokenModifierById = Object.create(null);
this.typeHierarchy = Object.create(null);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册