We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5866b23 commit 3497b13Copy full SHA for 3497b13
source/TokenHighlighter.js
@@ -40,7 +40,7 @@ export class TokenHighlighter {
40
highlight(text : string, tokens : Array<string>) {
41
var tagsLength : number = this._wrapText('').length;
42
43
- var tokenDictionary = Object.create(null);
+ var tokenDictionary = ((Object.create(null): any): Object);
44
45
// Create a token map for easier lookup below.
46
for (var i = 0, numTokens = tokens.length; i < numTokens; i++) {
0 commit comments