E52E Fixing test run crash by not passing script block to the callback by daxian-dbw · Pull Request #9298 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Fixing test run crash by not passing script block to the callback#9298

Merged
adityapatwardhan merged 2 commits intoPowerShell:masterfrom
daxian-dbw:fixtest
Apr 8, 2019
Merged

Fixing test run crash by not passing script block to the callback#9298
adityapatwardhan merged 2 commits intoPowerShell:masterfrom
daxian-dbw:fixtest

Conversation

@daxian-dbw
Copy link
Member
@daxian-dbw daxian-dbw commented Apr 5, 2019

PR Summary

Fixing test run crash by not passing script block to the callback.
Updated the test. Also updated the XML documentation of those asynchronous APIs to call out this.

PR Context

When calling the asynchronous APIs on the PowerShell class, the passed in callback could be invoked on a thread without the default Runspace.
So if a delegate cast from script block is passed in, it would fail in such case.

PR Checklist

@adityapatwardhan adityapatwardhan merged commit e299a30 into PowerShell:master Apr 8, 2019
@adityapatwardhan adityapatwardhan added the CL-Engine Indicates that a PR should be marked as an engine change in the Change Log label Apr 8, 2019
@adityapatwardhan adityapatwardhan added this to the 7.0.0-preview.1 milestone Apr 8, 2019
@daxian-dbw daxian-dbw deleted the fixtest branch April 8, 2019 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-Engine Indicates that a PR should be marked as an engine change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0