Skip to content

Commit 5d06a42

Browse files
committed
avoid using reserved keyword (char)
1 parent a43164d commit 5d06a42

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/parsers/path.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,16 @@ function noop () {}
8282
/**
8383
* Determine the type of a character in a keypath.
8484
*
85-
* @param {Char} char
85+
* @param {Char} ch
8686
* @return {String} type
8787
*/
8888

89-
function getPathCharType (char) {
90-
if (char === undefined) {
89+
function getPathCharType (ch) {
90+
if (ch === undefined) {
9191
return 'eof'
9292
}
9393

94-
var code = char.charCodeAt(0)
94+
var code = ch.charCodeAt(0)
9595

9696
switch(code) {
9797
case 0x5B: // [
@@ -100,7 +100,7 @@ function getPathCharType (char) {
100100
case 0x22: // "
101101
case 0x27: // '
102102
case 0x30: // 0
103-
return char
103+
return ch
104104

105105
case 0x5F: // _
106106
case 0x24: // $

0 commit comments

Comments
 (0)