Remove redundant if conditions that are tested above
This commit is contained in:
committed by
Marijn Haverbeke
parent
328d0e514c
commit
567f3ca32a
2
acorn.js
2
acorn.js
@@ -539,7 +539,7 @@
|
||||
} else if (next === 47) { // '/'
|
||||
skipLineComment();
|
||||
} else break;
|
||||
} else if ((ch < 14 && ch > 8) || ch === 32 || ch === 160) { // ' ', '\xa0'
|
||||
} else if (ch === 160) { // '\xa0'
|
||||
++tokPos;
|
||||
} else if (ch >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(ch))) {
|
||||
++tokPos;
|
||||
|
||||
Reference in New Issue
Block a user