Clean up helpers which are always present in ES2020 (#55515)

This commit is contained in:
Jake Bailey
2023-08-28 12:26:22 -07:00
committed by GitHub
parent 5ce34cafad
commit b5b6048bb3
13 changed files with 37 additions and 199 deletions

View File

@@ -2120,7 +2120,7 @@ export class TestState {
const output: string[] = [];
for (let lineNumber = contextStart.line; lineNumber <= contextEnd.line; lineNumber++) {
const spanLine = contextString.substring(contextLineMap[lineNumber], contextLineMap[lineNumber + 1]);
output.push(lineNumbers ? `${ts.padLeft(`${lineNumber + 1}: `, lineNumberPrefixLength)}${spanLine}` : spanLine);
output.push(lineNumbers ? `${`${lineNumber + 1}: `.padStart(lineNumberPrefixLength)}${spanLine}` : spanLine);
if (selection) {
if (lineNumber < selectionStart.line || lineNumber > selectionEnd.line) {
continue;