Closed
Description
Steps to reproduce
$a[0] = $a = [PSObject](,1)
[System.Management.Automation.LanguagePrimitives]::IsTrue($a)
Expected behavior
Return $true
.
Actual behavior
Process is terminated due to StackOverflowException
.
Environment data
> $PSVersionTable
Name Value
---- -----
CLRVersion
GitCommitId v6.0.0-alpha.16-24-gc74b2a7670c79b02bb526c0998720b93ac385d03
PSEdition Core
SerializationVersion 1.1.0.1
PSVersion 6.0.0-alpha
WSManStackVersion 3.0
BuildVersion 3.0.0.0
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.10032.0, 6.0.0}
PSRemotingProtocolVersion 2.3