﻿namespace Jint.Runtime.CallStack
{
    using System.Collections.Generic;

    public class CallStackElementComparer: IEqualityComparer<CallStackElement>
    {
        public bool Equals(CallStackElement x, CallStackElement y)
        {
            return x.Function == y.Function;
        }

        public int GetHashCode(CallStackElement obj)
        {
            return obj.Function.GetHashCode();
        }
    }
}
