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); }
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)); }