mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 11:54:44 -06:00
Merge pull request #992 from Microsoft/perfWork
use .pop() on an array instead of setting the length directly. The latt...
This commit is contained in:
commit
5ce3baf339
@ -1628,13 +1628,12 @@ module TypeScript.Scanner {
|
||||
var diagnostic = _tokenDiagnostics[tokenDiagnosticsLength - 1];
|
||||
if (diagnostic.start() >= position) {
|
||||
tokenDiagnosticsLength--;
|
||||
_tokenDiagnostics.pop();
|
||||
}
|
||||
else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
_tokenDiagnostics.length = tokenDiagnosticsLength;
|
||||
}
|
||||
|
||||
function resetToPosition(absolutePosition: number): void {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user