using System.Collections.Generic; using Jint.Native.Object; namespace Jint.Native.Array { public sealed class ArrayInstance : ObjectInstance { private readonly Stack _array = new Stack(); public ArrayInstance(ObjectInstance prototype) : base(prototype) { } public override string Class { get { return "Array"; } } public double Length { get { return _array.Count; } } public void Push(object o) { _array.Push(o); } public object Pop() { return _array.Pop(); } } }