/// <summary> /// Creates a new instance of a user-defined function. /// </summary> /// <param name="prototype"> The next object in the prototype chain. </param> /// <param name="name"> The name of the function. </param> /// <param name="args"> The names of the arguments. </param> /// <param name="bodyText"> The source code for the function body. </param> /// <param name="body"> A delegate which represents the body of the function. </param> /// <param name="strictMode"> <c>true</c> if the function body is strict mode; <c>false</c> otherwise. </param> public HoistFunctionReference(ScriptEngine engine, long methodID, object[] hoistValues) { Host = MethodLookup.LoadGenerator(methodID); HoistValues = hoistValues; }