Skip to content

Commit

Permalink
Fixed an error where handling of dense arrays would fall through to t…
Browse files Browse the repository at this point in the history
…he sparse array handler.
  • Loading branch information
otac0n committed Jul 8, 2011
1 parent d70822b commit 0fc7f46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Src/IronJS.Runtime/Objects/ArrayObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ public override void Put(uint index, BoxedValue value)
{
this.Length = index + 1;
}
return;
}
else if (index < (denseLength + 10))
{
Expand All @@ -177,6 +178,7 @@ public override void Put(uint index, BoxedValue value)
this.dense[index].Value = value;
this.dense[index].HasValue = true;
this.Length = index + 1;
return;
}
else
{
Expand Down

0 comments on commit 0fc7f46

Please sign in to comment.