ScriptBlock GetNewClosure do not inherit strict mode. - by PetSerAl

Status : 

 


1
0
Sign in
to vote
ID 776656 Comments
Status Active Workarounds
Type Bug Repros 1
Opened 1/15/2013 10:39:52 PM
Access Restriction Public

Description

Set-StrictMode -Version Latest
$SB={$NonExistedVariable}
$SB_NC=$SB.GetNewClosure()
&$SB #Error
&$SB_NC #No error
Sign in to post a comment.