Applies aspects to functions and constructors.