SeeminglyScience / PSLambda

A runtime compiler for PowerShell ScriptBlock objects.
MIT License
61 stars 3 forks source link

Exception should be assigned to dollar under/PSItem in catch #22

Open SeeminglyScience opened 6 years ago

SeeminglyScience commented 6 years ago

There's no way to reference the exception that caused a catch block at the moment. The exception should be assigned to $_/$PSItem if it's referenced in the catch block.

Also, looks like I accidently used Enumerable.Count instead of ReadOnlyCollection<>.Count here.