Skip to content

Commit

Permalink
IValue нельзя напрямую проверять на is или as. Использую IValue.GetRa…
Browse files Browse the repository at this point in the history
…wValue see EvilBeaver#197
  • Loading branch information
artbear committed Dec 3, 2015
1 parent 4064446 commit 7526e99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ScriptEngine.HostedScript/Library/FixedStructureImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
[ScriptConstructor]
public static IRuntimeContextInstance Constructor(IValue structure)
{
if (structure is StructureImpl)
if (structure.GetRawValue() is StructureImpl)
{
return new FixedStructureImpl(structure as StructureImpl);
return new FixedStructureImpl(structure.GetRawValue() as StructureImpl);
}
else
{
Expand Down

0 comments on commit 7526e99

Please sign in to comment.