public override JavaScriptObject Evaluate(Scope scope, JavaScriptObject thisObject)
        {
            Function function;
            if (thisObject.HasFunction(functionName))
            {
                function = thisObject.GetFunction(functionName, this.Position);
            }
            else
            {
                function = scope.GetFunction(functionName, this.Position);
            }

            return this.CallFunction(scope, function, thisObject);
        }
示例#2
0
        public override JavaScriptObject Evaluate(Scope scope, JavaScriptObject thisObject)
        {
            Function function;

            if (thisObject.HasFunction(functionName))
            {
                function = thisObject.GetFunction(functionName, this.Position);
            }
            else
            {
                function = scope.GetFunction(functionName, this.Position);
            }

            return(this.CallFunction(scope, function, thisObject));
        }