File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9191 if ($script :luaSkipValidation ) {
9292 Write-Warning " Reserved word '$ident ' used as a bare identifier key at position $identStart ."
9393 } else {
94- throw " Reserved word '$ident ' cannot be used as a bare identifier key in a Lua table. Use bracket notation: [`" $ident `" ] = value."
94+ $msg = " Reserved word '$ident ' cannot be used as a bare identifier key" +
95+ " in a Lua table. Use bracket notation: [`" $ident `" ] = value."
96+ throw $msg
9597 }
9698 }
9799 # Key = value pair
Original file line number Diff line number Diff line change 8787 begin {}
8888
8989 process {
90- $result = ConvertFrom-LuaTable - InputString $InputObject - AsPSCustomObject:(-not $AsHashtable ) - MaxDepth $Depth - SkipValidation:$SkipValidation
90+ $convertParams = @ {
91+ InputString = $InputObject
92+ AsPSCustomObject = -not $AsHashtable
93+ MaxDepth = $Depth
94+ SkipValidation = $SkipValidation.IsPresent
95+ }
96+ $result = ConvertFrom-LuaTable @convertParams
9197 if ($NoEnumerate -and $result -is [System.Array ]) {
9298 Write-Output - InputObject $result - NoEnumerate
9399 } else {
You can’t perform that action at this time.
0 commit comments