PSObject
wrapped ScriptBlock
s should also throw when attempting $using:
access
#17152
Labels
Issue-Bug
Issue has been identified as a bug in the product
Resolution-Fixed
The issue is fixed.
Up-for-Grabs
Up-for-grabs issues are not high priorities, and may be opportunities for external contributors
The check in
ForEach-Object -Parallel
forScriptBlock
s in$using:
values currently doesn't checkPSObject
s. This was discovered in #17150This if:
PowerShell/src/System.Management.Automation/engine/InternalCommands.cs
Lines 422 to 431 in 7cc9c87
Might need to be:
Steps to reproduce
Expected behavior
Actual behavior
Environment data
The text was updated successfully, but these errors were encountered: