Skip to content

Commit aa7c53c

Browse files
committed
[ci skip] use ClearLocals at the end of RunImpl
1 parent d3f9702 commit aa7c53c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Lib/Public/Hypervisor/Starscript.HV.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,8 @@ internal StringSegment RunImpl(ExecutableScript script, StringBuilder sb)
431431

432432
EndExecution:
433433

434-
if (!_persistentLocals)
435-
Locals = null;
434+
if (!_persistentLocals)
435+
ClearLocals();
436436

437437
if (firstSegment != null)
438438
{

src/Lib/Public/Starscript.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.Text;
44
using Starscript.Internal;
55
using Starscript.Util;
6+
// ReSharper disable UnusedMethodReturnValue.Global
67

78
namespace Starscript;
89

0 commit comments

Comments
 (0)