Skip to content

Commit

Permalink
powershell: prn/println return explicit null.
Browse files Browse the repository at this point in the history
This is needed for self-hosting to pass all tests.
  • Loading branch information
kanaka committed Jul 15, 2019
1 parent 6fd3a0d commit 34de124
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions powershell/core.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ $core_ns = @{

"pr-str" = { pr_seq $args $true " " };
"str" = { pr_seq $args $false "" };
"prn" = { Write-Host (pr_seq $args $true " ") };
"println" = { Write-Host (pr_seq $args $false " ") };
"prn" = { Write-Host (pr_seq $args $true " "); $null };
"println" = { Write-Host (pr_seq $args $false " "); $null };
"read-string" = { read_str $args[0] };
"readline" = { Write-Host $args[0] -NoNewline; [Console]::Readline() };
"slurp" = { Get-Content -Path $args[0] -Raw };
Expand Down

0 comments on commit 34de124

Please sign in to comment.