mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 02:33:53 -06:00
address code review
This commit is contained in:
parent
3d572d14ca
commit
123b2ebda7
@ -760,11 +760,7 @@ module ts {
|
||||
while (true) {
|
||||
var ch = text.charCodeAt(pos);
|
||||
var valueOfCh = ch - CharacterCodes._0;
|
||||
if (!isDigit(ch)) {
|
||||
break;
|
||||
}
|
||||
// We know at this point that ch must be digit
|
||||
if (valueOfCh >= base) {
|
||||
if (!isDigit(ch) || valueOfCh >= base) {
|
||||
break;
|
||||
}
|
||||
value = value * base + valueOfCh;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user