Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Always unpack arrays passed to Mu.new (fixes #104)

  • Loading branch information...
commit 99bda9544fa20aa081c6a56fae7649a510b267de 1 parent d747643
@sorear authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/Builtins.cs
View
7 lib/Builtins.cs
@@ -2699,7 +2699,12 @@ class CrossSource: ItemSource {
} else {
obj = (ai.flags & P6how.A_HASH) != 0 ?
Kernel.CreateHash() : Kernel.CreateArray();
- if (vx != null) Kernel.Assign(obj, vx);
+ if (vx != null) {
+ // https://github.com/sorear/niecza/issues/104
+ if (!vx.islist)
+ vx = Kernel.NewRWListVar(vx.Fetch());
+ Kernel.Assign(obj, vx);
+ }
}
n.SetSlot(ai.owner, ai.name, obj);
}
Please sign in to comment.
Something went wrong with that request. Please try again.