Skip to content

Commit 0cc2667

Browse files
author
James Brundage
committed
Updating core inline transpiler (sharing context) (#112)
1 parent a2c7af1 commit 0cc2667

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Transpilers/Core/PipeScript.Inline.psx.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ $End
8585
)
8686

8787
begin {
88-
88+
$TempModule = New-Module -ScriptBlock { }
8989
}
9090

9191
process {
@@ -173,7 +173,7 @@ process {
173173

174174
$codeToRun = [ScriptBlock]::Create($statements -join [Environment]::Newline)
175175

176-
"$(& $codeToRun)"
176+
"$(. $TempModule $codeToRun)"
177177
}
178178
}
179179

0 commit comments

Comments
 (0)