lib: remove deprecated string methods · nodejs/node@fa220ca · GitHub
Skip to content

Commit fa220ca

Browse files
MrJithilUlisesGascon
authored andcommitted
lib: remove deprecated string methods
PR-URL: #50592 Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 7b9b1fb commit fa220ca

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

lib/_http_agent.js

Lines changed: 2 additions & 2 deletions

lib/internal/main/print_help.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const {
1111
RegExpPrototypeSymbolReplace,
1212
StringPrototypeLocaleCompare,
1313
StringPrototypeSlice,
14-
StringPrototypeTrimLeft,
14+
StringPrototypeTrimStart,
1515
StringPrototypeRepeat,
1616
SafeMap,
1717
} = primordials;
@@ -180,7 +180,7 @@ function format(
180180
else
181181
text += StringPrototypeRepeat(' ', firstColumn - displayName.length);
182182

183-
text += StringPrototypeTrimLeft(
183+
text += StringPrototypeTrimStart(
184184
indent(fold(displayHelpText, secondColumn), firstColumn)) + '\n';
185185
}
186186

lib/repl.js

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)