-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Fix regression in Get-PSCallStack #11210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix regression in Get-PSCallStack #11210
Conversation
afc3e2b
to
6e5daaa
Compare
} | ||
|
||
It "Get-PSCallStack returns Arguments" { | ||
& { (Get-PSCallStack)[0].Arguments } 'foo' | Should -Match 'foo' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add a test for the case where the scriptblock has formal parameters:
& { param ($x) (Get-PSCallStack)[0].Arguments } 'foo'
and another where multiple arguments are passed to the scriptblock:
& { (Get-PSCallStack)[0].Arguments } 'foo' 'bar'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
🎉 Handy links: |
PR Summary
Fix #11208
PR Context
The regression comes from #6950
PR Checklist
.h
,.cpp
,.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
or[ WIP ]
to the beginning of the title (theWIP
bot will keep its status check atPending
while the prefix is present) and remove the prefix when the PR is ready.