Skip to content

Fix PSModuleInfo.CaptureLocals to not do ValidateAttribute check when capturing variables from the caller's scope#3149

Merged
daxian-dbw merged 2 commits intoPowerShell:masterfrom
daxian-dbw:fix-GetNewClosure
Feb 17, 2017
Merged

Fix PSModuleInfo.CaptureLocals to not do ValidateAttribute check when capturing variables from the caller's scope#3149
daxian-dbw merged 2 commits intoPowerShell:masterfrom
daxian-dbw:fix-GetNewClosure

Conversation

@daxian-dbw
Copy link
Copy Markdown
Member

fix #3144

… capturing variables from the caller's scope
@PowerShellTeam PowerShellTeam added the Review - Needed The PR is being reviewed label Feb 16, 2017
@daxian-dbw
Copy link
Copy Markdown
Member Author

daxian-dbw commented Feb 16, 2017

I added a comment in test per requested by @dantraMSFT. Nothing is changed in code/script.

@lzybkr lzybkr self-assigned this Feb 16, 2017
@daxian-dbw daxian-dbw merged commit 5a8fa57 into PowerShell:master Feb 17, 2017
@daxian-dbw daxian-dbw deleted the fix-GetNewClosure branch February 17, 2017 05:25
@iSazonov iSazonov removed the Review - Needed The PR is being reviewed label Mar 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ScriptBlock.GetNewClosure() unexpectedly tries to include unbound parameters that have validation attributes, causing errors

6 participants