File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ var TypeError = globalThis.TypeError;
49
49
var encodeURIComponent = globalThis . encodeURIComponent ;
50
50
var fromCharCode = String . fromCharCode ;
51
51
var fromCodePoint = getBuiltIn ( 'String' , 'fromCodePoint' ) ;
52
- var $isNaN = isNaN ;
53
52
var $parseInt = parseInt ;
54
53
var charAt = uncurryThis ( '' . charAt ) ;
55
54
var join = uncurryThis ( [ ] . join ) ;
@@ -119,7 +118,8 @@ var decode = function (input) {
119
118
120
119
var octet = parseHexOctet ( input , i + 1 ) ;
121
120
122
- if ( $isNaN ( octet ) ) {
121
+ // eslint-disable-next-line no-self-compare -- NaN check
122
+ if ( octet !== octet ) {
123
123
result += decodedChar ;
124
124
i ++ ;
125
125
continue ;
@@ -146,7 +146,8 @@ var decode = function (input) {
146
146
147
147
var nextByte = parseHexOctet ( input , i + 1 ) ;
148
148
149
- if ( $isNaN ( nextByte ) ) {
149
+ // eslint-disable-next-line no-self-compare -- NaN check
150
+ if ( nextByte !== nextByte ) {
150
151
i += 3 ;
151
152
break ;
152
153
}
You can’t perform that action at this time.
0 commit comments