diff --git a/scripts/lib/powershell-destructive-command.js b/scripts/lib/powershell-destructive-command.js index aea4e3f20..f99216016 100644 --- a/scripts/lib/powershell-destructive-command.js +++ b/scripts/lib/powershell-destructive-command.js @@ -944,11 +944,11 @@ function parseStatements(input) { wordHasQuotedContent && !wordHasUnquotedContent ? wordQuoteKind : null ); segmentTokenSources.push(wordSource); - segmentInlineValueQuoteKinds = [...segmentInlineValueQuoteKinds, + segmentInlineValueQuoteKinds.push( wordInlineValueQuoteClosed && wordInlineValueQuoteKind !== 'mixed' ? wordInlineValueQuoteKind : null - ]; + ); } word = ''; wordSource = '';