Пример #1
0
        protected int Compare(Scope scope, JavaScriptObject thisObject)
        {
            JavaScriptObject left  = this.LeftOperand.Evaluate(scope, thisObject);
            JavaScriptObject right = this.RightOperand.Evaluate(scope, thisObject);

            checkTypes(left, right);
            try
            {
                return(left.CompareTo(right));
            }
            catch (NotImplementedException)
            {
                throw new InvalidOperatorException(Position);
            }
        }