Skip to content

Commit

Permalink
tokenClassificationRegistry.ts: Use Object.create(null)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Aug 12, 2020
1 parent 33b077a commit de7bb5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/platform/theme/common/tokenClassificationRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit de7bb5b

Please sign in to comment.