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:
CyrusNajmabadi 2014-10-29 14:51:41 -07:00
commit 5ce3baf339

View File

@ -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 {