File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -79,16 +79,16 @@ function asciiCaselessMatch(s1, s2) {
79
79
}
80
80
81
81
var tokenize = ( function ( ) {
82
- let str ;
82
+ let codepoints ;
83
83
let i ;
84
84
let tokens ;
85
85
let code ;
86
86
87
87
function codepoint ( i ) {
88
- if ( i >= str . length ) {
88
+ if ( i >= codepoints . length ) {
89
89
return 0 ;
90
90
}
91
- return str [ i ] ;
91
+ return codepoints [ i ] ;
92
92
}
93
93
function next ( num ) {
94
94
if ( num === undefined )
@@ -463,7 +463,7 @@ var tokenize = (function () {
463
463
464
464
465
465
function tokenize ( input ) {
466
- str = preprocess ( input ) ;
466
+ codepoints = preprocess ( input ) ;
467
467
i = - 1 ;
468
468
tokens = [ ] ;
469
469
code ;
@@ -476,7 +476,7 @@ var tokenize = (function () {
476
476
break ;
477
477
}
478
478
iterationCount ++ ;
479
- if ( iterationCount > str . length * 2 ) throw new Error ( "I'm infinite-looping!" ) ;
479
+ if ( iterationCount > codepoints . length * 2 ) throw new Error ( "I'm infinite-looping!" ) ;
480
480
}
481
481
return tokens ;
482
482
}
You can’t perform that action at this time.
0 commit comments