Skip to content

Commit

Permalink
closes #1451
Browse files Browse the repository at this point in the history
  • Loading branch information
akpaevj committed Sep 28, 2024
1 parent e091463 commit 3d6d6d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ScriptEngine/Machine/RuntimeScopes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ This Source Code Form is subject to the terms of the
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using OneScript.Contexts;

namespace ScriptEngine.Machine
Expand All @@ -24,7 +25,7 @@ public class RuntimeScopes : IReadOnlyList<AttachedContext>

public RuntimeScopes(IReadOnlyList<AttachedContext> outerScopes, AttachedContext innerScope)
{
_outerScopes = outerScopes;
_outerScopes = outerScopes.Select(x => new AttachedContext(x.Instance)).ToList();
_innerScope = innerScope;

_outerScopeLast = _outerScopes.Count - 1;
Expand Down

0 comments on commit 3d6d6d6

Please sign in to comment.